diff options
author | Thomas Müller <thomas.mueller@tmit.eu> | 2015-03-13 09:25:05 +0100 |
---|---|---|
committer | Thomas Müller <thomas.mueller@tmit.eu> | 2015-03-13 09:25:05 +0100 |
commit | c546f0bf46a51dc297be15aa1acbca5ed9a84de9 (patch) | |
tree | a601c7b03140f4e14cbc66f13ba71af2699e7026 | |
parent | d17630d6be3534733d56bbe28ee13491810d6f22 (diff) | |
parent | e3fd13de885479b1f3a355cf4c86fbd4dd0f2495 (diff) | |
download | nextcloud-server-c546f0bf46a51dc297be15aa1acbca5ed9a84de9.tar.gz nextcloud-server-c546f0bf46a51dc297be15aa1acbca5ed9a84de9.zip |
Merge pull request #14844 from owncloud/fix-14843-master
cron shall not operate in case we are in maintenance mode
-rw-r--r-- | cron.php | 6 |
1 files changed, 5 insertions, 1 deletions
@@ -26,7 +26,11 @@ try { if (\OCP\Util::needUpgrade()) { \OCP\Util::writeLog('cron', 'Update required, skipping cron', \OCP\Util::DEBUG); - exit(); + exit; + } + if (\OC::$server->getSystemConfig()->getValue('maintenance', false)) { + \OCP\Util::writeLog('cron', 'We are in maintenance mode, skipping cron', \OCP\Util::DEBUG); + exit; } // load all apps to get all api routes properly setup |