From: Robin Appelman Date: Thu, 9 Apr 2015 11:50:53 +0000 (+0200) Subject: block cron when in single user mode X-Git-Tag: v8.1.0alpha1~35^2~4 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=d96e9d174bf6c5128fca0c8b6ab8320dc3c93dad;p=nextcloud-server.git block cron when in single user mode --- diff --git a/cron.php b/cron.php index c6236897227..8c02536744e 100644 --- a/cron.php +++ b/cron.php @@ -41,6 +41,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();