]> source.dussan.org Git - nextcloud-server.git/commitdiff
Prevent cron.php to trigger apps updating
authorVincent Petry <pvince81@owncloud.com>
Wed, 23 Jul 2014 19:29:24 +0000 (21:29 +0200)
committerThomas Müller <thomas.mueller@tmit.eu>
Wed, 23 Jul 2014 20:42:41 +0000 (22:42 +0200)
cron.php

index 7f746911f4278b2dc70abf0f07b26d9c0a53781e..4c86407b9442fbcb68d1c0f2690f9019495af815 100644 (file)
--- 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();