mirror of
https://github.com/nextcloud/server.git
synced 2026-06-10 17:23:59 -04:00
fix(updatenotification): Skip update check
Signed-off-by: Christopher Ng <chrng8@gmail.com>
(cherry picked from commit b63dbae68a)
This commit is contained in:
parent
acd4e5dc0f
commit
0c3324f478
1 changed files with 5 additions and 0 deletions
|
|
@ -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.
|
||||
|
|
|
|||
Loading…
Reference in a new issue