|
|
|
@ -27,7 +27,8 @@ if (\OCP\Util::needUpgrade()) { |
|
|
|
|
// since the behavior of apps or remotes are unpredictable during |
|
|
|
|
// an upgrade, return a 503 directly |
|
|
|
|
OC_Response::setStatus(OC_Response::STATUS_SERVICE_UNAVAILABLE); |
|
|
|
|
OC_Template::printErrorPage('Service unavailable'); |
|
|
|
|
$response = new OC_OCS_Result(null, OC_Response::STATUS_SERVICE_UNAVAILABLE, 'Service unavailable'); |
|
|
|
|
OC_API::respond($response, OC_API::requestedFormat()); |
|
|
|
|
exit; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|