[Pkg-owncloud-commits] [owncloud] 04/61: Prevent cron.php to trigger apps updating

David Prévot taffit at moszumanska.debian.org
Thu Jul 31 03:51:41 UTC 2014


This is an automated email from the git hooks/post-receive script.

taffit pushed a commit to branch master
in repository owncloud.

commit 127aa309fb1e9139b98cbdd19e641a1219936cec
Author: Vincent Petry <pvince81 at owncloud.com>
Date:   Wed Jul 23 21:29:24 2014 +0200

    Prevent cron.php to trigger apps updating
---
 cron.php | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/cron.php b/cron.php
index 7f74691..4c86407 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();
 

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-owncloud/owncloud.git



More information about the Pkg-owncloud-commits mailing list