Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/server.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas Müller <thomas.mueller@tmit.eu>2015-03-12 23:03:26 +0300
committerThomas Müller <thomas.mueller@tmit.eu>2015-03-12 23:07:14 +0300
commit4bf3d2907d7bcadce631efb06daff435ef98b0ed (patch)
treec07c792609c775d4b75c9274484e858cd5bb463f /cron.php
parent1f1078120c8389caa1d48c120fe358b3cedca117 (diff)
cron shall not operate in case we are in maintenance mode - fixes #14843
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 bcbb298de55..ef68669da34 100644
--- a/cron.php
+++ b/cron.php
@@ -50,7 +50,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