Expose the needupgrade status (#26209)

During upgrades, before the DB migration is complete, the system is not
usable, but there's no way for monitoring systems to detect this.
Add the 'needupgrade' field to the status json so monitoring systems can
detect this.

Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
This commit is contained in:
Kristof Provost 2016-09-29 17:14:00 +02:00 committed by Roeland Jago Douma
parent b946e3ecfb
commit 9963bdaeb9
No known key found for this signature in database
GPG Key ID: 1E152838F164D13B
1 changed files with 1 additions and 0 deletions

View File

@ -41,6 +41,7 @@ try {
$values=array(
'installed'=>$installed,
'maintenance' => $maintenance,
'needsDbUpgrade' => \OCP\Util::needUpgrade(),
'version'=>implode('.', \OCP\Util::getVersion()),
'versionstring'=>OC_Util::getVersionString(),
'edition'=> '',