cron shall not operate in case we are in maintenance mode - fixes #14843

This commit is contained in:
Thomas Müller 2015-03-12 21:03:26 +01:00
parent 68a7041348
commit e3fd13de88
1 changed files with 5 additions and 1 deletions

View File

@ -26,7 +26,11 @@ try {
if (\OCP\Util::needUpgrade()) { if (\OCP\Util::needUpgrade()) {
\OCP\Util::writeLog('cron', 'Update required, skipping cron', \OCP\Util::DEBUG); \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 // load all apps to get all api routes properly setup