aboutsummaryrefslogtreecommitdiffstats
path: root/cron.php
diff options
context:
space:
mode:
Diffstat (limited to 'cron.php')
-rw-r--r--cron.php6
1 files changed, 5 insertions, 1 deletions
diff --git a/cron.php b/cron.php
index 0595cece4f8..1cde43c6b9a 100644
--- a/cron.php
+++ b/cron.php
@@ -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