Skip to content

Commit

Permalink
block cron when in single user mode
Browse files Browse the repository at this point in the history
  • Loading branch information
icewind1991 committed Apr 9, 2015
1 parent 103d451 commit d96e9d1
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions cron.php
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,11 @@
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();

Expand Down

0 comments on commit d96e9d1

Please sign in to comment.