diff options
author | Thomas Müller <thomas.mueller@tmit.eu> | 2015-03-12 23:03:26 +0300 |
---|---|---|
committer | Thomas Müller <thomas.mueller@tmit.eu> | 2015-03-12 23:07:14 +0300 |
commit | 4bf3d2907d7bcadce631efb06daff435ef98b0ed (patch) | |
tree | c07c792609c775d4b75c9274484e858cd5bb463f /cron.php | |
parent | 1f1078120c8389caa1d48c120fe358b3cedca117 (diff) |
cron shall not operate in case we are in maintenance mode - fixes #14843
Diffstat (limited to 'cron.php')
-rw-r--r-- | cron.php | 6 |
1 files changed, 5 insertions, 1 deletions
@@ -50,7 +50,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 |