summaryrefslogtreecommitdiffstats
path: root/settings/ajax
diff options
context:
space:
mode:
authorRobin Appelman <icewind@owncloud.com>2014-07-25 13:40:51 +0200
committerRobin Appelman <icewind@owncloud.com>2014-08-04 13:41:05 +0200
commit5c1f57214986c07ea713ab252669199faa27e0f0 (patch)
treebced99968865f144fc4f4b792d47397bf0e0ad1a /settings/ajax
parentae263da69ae484f36f70d9406bac8adbf06c3e44 (diff)
downloadnextcloud-server-5c1f57214986c07ea713ab252669199faa27e0f0.tar.gz
nextcloud-server-5c1f57214986c07ea713ab252669199faa27e0f0.zip
Set maintaince mode when updating an app from the app store
Diffstat (limited to 'settings/ajax')
-rw-r--r--settings/ajax/updateapp.php3
1 files changed, 3 insertions, 0 deletions
diff --git a/settings/ajax/updateapp.php b/settings/ajax/updateapp.php
index 78f6775fe95..afaa9318fb2 100644
--- a/settings/ajax/updateapp.php
+++ b/settings/ajax/updateapp.php
@@ -33,7 +33,10 @@ if (!is_numeric($appId)) {
$appId = OC_App::cleanAppId($appId);
+\OC_Config::setValue('maintenance', true);
$result = OC_Installer::updateAppByOCSId($appId, $isShipped);
+\OC_Config::setValue('maintenance', false);
+
if($result !== false) {
OC_JSON::success(array('data' => array('appid' => $appId)));
} else {