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