block cron when in single user mode
This commit is contained in:
parent
103d451459
commit
d96e9d174b
5
cron.php
5
cron.php
|
@ -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();
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue