[Pkg-owncloud-commits] [owncloud] 55/78: block cron when in single user mode
David Prévot
taffit at moszumanska.debian.org
Sun May 31 01:59:09 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 67c862c2862e7e8799828ac878566e5becefe510
Author: Robin Appelman <icewind at owncloud.com>
Date: Thu Apr 9 13:50:53 2015 +0200
block cron when in single user mode
---
cron.php | 5 +++++
1 file changed, 5 insertions(+)
diff --git a/cron.php b/cron.php
index d62650b..75c5335 100644
--- a/cron.php
+++ b/cron.php
@@ -57,6 +57,11 @@ try {
exit;
}
+ if (\OCP\Config::getSystemValue('singleuser', false)) {
+ \OCP\Util::writeLog('cron', 'We are in admin only mode, skipping cron', \OCP\Util::DEBUG);
+ exit;
+ }
+
// load all apps to get all api routes properly setup
OC_App::loadApps();
--
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