diff options
author | Christopher Ng <chrng8@gmail.com> | 2023-08-10 19:01:07 -0700 |
---|---|---|
committer | Christopher Ng <chrng8@gmail.com> | 2023-08-11 10:40:49 -0700 |
commit | b63dbae68aa1b5430f186aee5fcce55db711abc4 (patch) | |
tree | ef5257ff9e5423205bfc219a8fb50886f285f3ce /apps | |
parent | 03f5bb68a33551d282c66072a940c8b906fc811b (diff) | |
download | nextcloud-server-b63dbae68aa1b5430f186aee5fcce55db711abc4.tar.gz nextcloud-server-b63dbae68aa1b5430f186aee5fcce55db711abc4.zip |
fix(updatenotification): Skip update check
Signed-off-by: Christopher Ng <chrng8@gmail.com>
Diffstat (limited to 'apps')
-rw-r--r-- | apps/updatenotification/lib/Notification/BackgroundJob.php | 5 |
1 files changed, 5 insertions, 0 deletions
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. |