[Pkg-owncloud-commits] [owncloud] 62/103: block cron when in single	user mode
    David Prévot 
    taffit at moszumanska.debian.org
       
    Sun May 31 12:32:38 UTC 2015
    
    
  
This is an automated email from the git hooks/post-receive script.
taffit pushed a commit to annotated tag v8.0.4RC1
in repository owncloud.
commit eded1f05fc4ba54cd3f669a7f5024fee133fe57d
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 9112bdf..b8e5dde 100644
--- a/cron.php
+++ b/cron.php
@@ -57,6 +57,11 @@ try {
 		exit;
 	}
 
+	if (\OC::$server->getSystemConfig()->getValue('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