Skip to content
Snippets Groups Projects
Commit d96e9d17 authored by Robin Appelman's avatar Robin Appelman
Browse files

block cron when in single user mode

parent 103d4514
No related branches found
No related tags found
No related merge requests found
......@@ -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();
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment