[Pkg-owncloud-commits] [owncloud] 54/78: Disable OCS api when in	maintenance mode
    David Prévot 
    taffit at moszumanska.debian.org
       
    Sun May 31 01:59:09 UTC 2015
    
    
  
This is an automated email from the git hooks/post-receive script.
taffit pushed a commit to branch master
in repository owncloud.
commit 88006222a9a468626bba6412fd7f21dac41057c0
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..495ce22 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() || \OCP\Config::getSystemValue('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