]> source.dussan.org Git - nextcloud-server.git/commitdiff
block cron when in single user mode
authorRobin Appelman <icewind@owncloud.com>
Thu, 9 Apr 2015 11:50:53 +0000 (13:50 +0200)
committerMorris Jobke <hey@morrisjobke.de>
Wed, 6 May 2015 09:51:14 +0000 (11:51 +0200)
cron.php

index d62650bbe9dea42a2e13db08c7ea82eb6b6f1b17..75c5335bb4ce7565ccbb3805e8b9041ebe44ca0d 100644 (file)
--- 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();