summaryrefslogtreecommitdiffstats
path: root/cron.php
diff options
context:
space:
mode:
Diffstat (limited to 'cron.php')
-rw-r--r--cron.php5
1 files changed, 5 insertions, 0 deletions
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();