From d96e9d174bf6c5128fca0c8b6ab8320dc3c93dad Mon Sep 17 00:00:00 2001 From: Robin Appelman Date: Thu, 9 Apr 2015 13:50:53 +0200 Subject: [PATCH] block cron when in single user mode --- cron.php | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/cron.php b/cron.php index c623689722..8c02536744 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();