From: Vincent Petry Date: Wed, 23 Jul 2014 19:29:24 +0000 (+0200) Subject: Prevent cron.php to trigger apps updating X-Git-Tag: v7.0.1RC1^2~41 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=127aa309fb1e9139b98cbdd19e641a1219936cec;p=nextcloud-server.git Prevent cron.php to trigger apps updating --- diff --git a/cron.php b/cron.php index 7f746911f42..4c86407b944 100644 --- a/cron.php +++ b/cron.php @@ -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();