summaryrefslogtreecommitdiffstats
path: root/settings
diff options
context:
space:
mode:
authorRobin Appelman <icewind@owncloud.com>2014-07-25 13:40:51 +0200
committerRobin Appelman <icewind@owncloud.com>2014-08-19 14:05:06 +0200
commit75236b0ee6cde8daa538eae5623077c838e6be02 (patch)
tree42067d9b2ad051f73ebba1aa691268edecd13c7e /settings
parent4d2ab79392e49dcde16240b7ec061715cd57daf1 (diff)
downloadnextcloud-server-75236b0ee6cde8daa538eae5623077c838e6be02.tar.gz
nextcloud-server-75236b0ee6cde8daa538eae5623077c838e6be02.zip
Set maintaince mode when updating an app from the app store
Diffstat (limited to 'settings')
-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 {