Commit e3fd13de authored by Thomas Müller's avatar Thomas Müller
Browse files

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

parent 68a70413
......@@ -26,7 +26,11 @@ try {
if (\OCP\Util::needUpgrade()) {
\OCP\Util::writeLog('cron', 'Update required, skipping cron', \OCP\Util::DEBUG);
if (\OC::$server->getSystemConfig()->getValue('maintenance', false)) {
\OCP\Util::writeLog('cron', 'We are in maintenance mode, skipping cron', \OCP\Util::DEBUG);
// load all apps to get all api routes properly setup
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment