[Pkg-owncloud-commits] [owncloud] 08/78: cron shall not operate in case we are in maintenance mode - fixes #14843
David Prévot
taffit at moszumanska.debian.org
Sun May 31 01:59:01 UTC 2015
This is an automated email from the git hooks/post-receive script.
taffit pushed a commit to branch master
in repository owncloud.
commit c716776a90da02e463040c507ea8a3f34d871cfd
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 5c2cb20..8a3240d 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