[Pkg-owncloud-commits] [owncloud] 39/118: cron shall not operate in case we are in maintenance mode - fixes #14843
David Prévot
taffit at moszumanska.debian.org
Fri Mar 27 22:13:10 UTC 2015
This is an automated email from the git hooks/post-receive script.
taffit pushed a commit to branch stable8
in repository owncloud.
commit 4bf3d2907d7bcadce631efb06daff435ef98b0ed
Author: Thomas Müller <thomas.mueller at tmit.eu>
Date: Thu Mar 12 21:03:26 2015 +0100
cron shall not operate in case we are in maintenance mode - fixes #14843
---
cron.php | 6 +++++-
1 file changed, 5 insertions(+), 1 deletion(-)
diff --git a/cron.php b/cron.php
index bcbb298..ef68669 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
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-owncloud/owncloud.git
More information about the Pkg-owncloud-commits
mailing list