Set maintaince mode when updating an app from the app store

This commit is contained in:
Robin Appelman 2014-07-25 13:40:51 +02:00
parent ae263da69a
commit 5c1f572149
1 changed files with 3 additions and 0 deletions

View File

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