[Pkg-owncloud-commits] [owncloud] 61/103: Disable OCS api when in maintenance mode

David Prévot taffit at moszumanska.debian.org
Sun May 31 12:32:38 UTC 2015


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

taffit pushed a commit to annotated tag v8.0.4RC1
in repository owncloud.

commit 3f4eba1acbfdf744e639b14801e13832cd43d1d2
Author: Joas Schilling <nickvergessen at owncloud.com>
Date:   Wed Apr 8 12:51:20 2015 +0200

    Disable OCS api when in maintenance mode
---
 ocs/v1.php | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/ocs/v1.php b/ocs/v1.php
index 0a86fb0..0bdc8f7 100644
--- a/ocs/v1.php
+++ b/ocs/v1.php
@@ -23,7 +23,7 @@
 
 require_once '../lib/base.php';
 
-if (\OCP\Util::needUpgrade()) {
+if (\OCP\Util::needUpgrade() || \OC::$server->getSystemConfig()->getValue('maintenance', false)) {
 	// since the behavior of apps or remotes are unpredictable during
 	// an upgrade, return a 503 directly
 	OC_Response::setStatus(OC_Response::STATUS_SERVICE_UNAVAILABLE);

-- 
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