Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/server.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVincent Petry <pvince81@owncloud.com>2014-07-23 23:29:24 +0400
committerVincent Petry <pvince81@owncloud.com>2014-07-23 23:29:24 +0400
commit547927bdd29452c462a9f6d3f78c7c0daa9c3f33 (patch)
tree006a9bc0256d9d0b1d08dc170f67c2d1ad9995e3 /cron.php
parent9834e3854201d68fbd5dcbef09122c48cc5bcb10 (diff)
Prevent cron.php to trigger apps updating
Diffstat (limited to 'cron.php')
-rw-r--r--cron.php5
1 files changed, 5 insertions, 0 deletions
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();