block cron when in single user mode

This commit is contained in:
Robin Appelman 2015-04-09 13:50:53 +02:00
parent 103d451459
commit d96e9d174b
1 changed files with 5 additions and 0 deletions

View File

@ -41,6 +41,11 @@ try {
exit; 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 // load all apps to get all api routes properly setup
OC_App::loadApps(); OC_App::loadApps();