From 5c1f57214986c07ea713ab252669199faa27e0f0 Mon Sep 17 00:00:00 2001 From: Robin Appelman Date: Fri, 25 Jul 2014 13:40:51 +0200 Subject: Set maintaince mode when updating an app from the app store --- settings/ajax/updateapp.php | 3 +++ 1 file changed, 3 insertions(+) (limited to 'settings/ajax') 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 { -- cgit v1.2.3