diff options
author | Robin Appelman <icewind@owncloud.com> | 2015-04-09 13:50:53 +0200 |
---|---|---|
committer | Robin Appelman <icewind@owncloud.com> | 2015-04-09 13:50:53 +0200 |
commit | d96e9d174bf6c5128fca0c8b6ab8320dc3c93dad (patch) | |
tree | f49ce1022b9a18c33b91e64a3fc52d38f5c87ba2 /cron.php | |
parent | 103d451459efe539f13e0bebf968cf94c322ec0e (diff) | |
download | nextcloud-server-d96e9d174bf6c5128fca0c8b6ab8320dc3c93dad.tar.gz nextcloud-server-d96e9d174bf6c5128fca0c8b6ab8320dc3c93dad.zip |
block cron when in single user mode
Diffstat (limited to 'cron.php')
-rw-r--r-- | cron.php | 5 |
1 files changed, 5 insertions, 0 deletions
@@ -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(); |