Prevent cron.php to trigger apps updating

This commit is contained in:
Vincent Petry 2014-07-23 21:29:24 +02:00
parent 9834e38542
commit 547927bdd2
1 changed files with 5 additions and 0 deletions

View File

@ -48,6 +48,11 @@ try {
require_once 'lib/base.php';
if (\OCP\Util::needUpgrade()) {
\OCP\Util::writeLog('cron', 'Update required, skipping cron', \OCP\Util::DEBUG);
exit();
}
// load all apps to get all api routes properly setup
OC_App::loadApps();