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

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

cron shall not operate in case we are in maintenance mode
parents d17630d6 e3fd13de
......@@ -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