diff options
author | Robin Appelman <icewind@owncloud.com> | 2014-07-25 13:40:51 +0200 |
---|---|---|
committer | Robin Appelman <icewind@owncloud.com> | 2014-08-04 13:41:05 +0200 |
commit | 5c1f57214986c07ea713ab252669199faa27e0f0 (patch) | |
tree | bced99968865f144fc4f4b792d47397bf0e0ad1a /settings/ajax | |
parent | ae263da69ae484f36f70d9406bac8adbf06c3e44 (diff) | |
download | nextcloud-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.php | 3 |
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 { |