summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorThomas Müller <thomas.mueller@tmit.eu>2014-07-23 22:41:55 +0200
committerThomas Müller <thomas.mueller@tmit.eu>2014-07-23 22:41:55 +0200
commit4c99869e1f1cf816ed2086a8dd14c6f3afc05d99 (patch)
treedc441cdcf17f7f16f30d302b3428f139e5ee46c8
parentfb0416884fefca7d4ecf52e8af84a36249e4b77a (diff)
parent547927bdd29452c462a9f6d3f78c7c0daa9c3f33 (diff)
downloadnextcloud-server-4c99869e1f1cf816ed2086a8dd14c6f3afc05d99.tar.gz
nextcloud-server-4c99869e1f1cf816ed2086a8dd14c6f3afc05d99.zip
Merge pull request #9815 from owncloud/update-preventupdatethroughcron
Prevent cron.php to trigger apps updating
-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();