From 0c3324f478d54a062d3d27529c870c8f095d5cd3 Mon Sep 17 00:00:00 2001 From: Christopher Ng Date: Thu, 10 Aug 2023 19:01:07 -0700 Subject: fix(updatenotification): Skip update check Signed-off-by: Christopher Ng (cherry picked from commit b63dbae68aa1b5430f186aee5fcce55db711abc4) --- apps/updatenotification/lib/Notification/BackgroundJob.php | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/apps/updatenotification/lib/Notification/BackgroundJob.php b/apps/updatenotification/lib/Notification/BackgroundJob.php index 4889c931238..08142d5b00b 100644 --- a/apps/updatenotification/lib/Notification/BackgroundJob.php +++ b/apps/updatenotification/lib/Notification/BackgroundJob.php @@ -57,6 +57,11 @@ class BackgroundJob extends TimedJob { } protected function run($argument) { + // Do not check for updates if not connected to the internet + if (!$this->config->getSystemValueBool('has_internet_connection', true)) { + return; + } + if (\OC::$CLI && !$this->config->getSystemValueBool('debug', false)) { try { // Jitter the pinging of the updater server and the appstore a bit. -- cgit v1.2.3