Merge pull request #9815 from owncloud/update-preventupdatethroughcron

Prevent cron.php to trigger apps updating
This commit is contained in:
Thomas Müller 2014-07-23 22:41:55 +02:00
commit 4c99869e1f

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();