Merge pull request #14844 from owncloud/fix-14843-master

cron shall not operate in case we are in maintenance mode
This commit is contained in:
Thomas Müller 2015-03-13 09:25:05 +01:00
commit c546f0bf46

View file

@ -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