summaryrefslogtreecommitdiffstats
path: root/cron.php
diff options
context:
space:
mode:
authorRobin Appelman <icewind@owncloud.com>2015-04-09 13:50:53 +0200
committerRobin Appelman <icewind@owncloud.com>2015-04-09 13:50:53 +0200
commitd96e9d174bf6c5128fca0c8b6ab8320dc3c93dad (patch)
treef49ce1022b9a18c33b91e64a3fc52d38f5c87ba2 /cron.php
parent103d451459efe539f13e0bebf968cf94c322ec0e (diff)
downloadnextcloud-server-d96e9d174bf6c5128fca0c8b6ab8320dc3c93dad.tar.gz
nextcloud-server-d96e9d174bf6c5128fca0c8b6ab8320dc3c93dad.zip
block cron when in single user 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 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();