From 67c862c2862e7e8799828ac878566e5becefe510 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 d62650bbe9d..75c5335bb4c 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(); -- 2.39.5