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:
parent
b946e3ecfb
commit
9963bdaeb9
|
@ -41,6 +41,7 @@ try {
|
||||||
$values=array(
|
$values=array(
|
||||||
'installed'=>$installed,
|
'installed'=>$installed,
|
||||||
'maintenance' => $maintenance,
|
'maintenance' => $maintenance,
|
||||||
|
'needsDbUpgrade' => \OCP\Util::needUpgrade(),
|
||||||
'version'=>implode('.', \OCP\Util::getVersion()),
|
'version'=>implode('.', \OCP\Util::getVersion()),
|
||||||
'versionstring'=>OC_Util::getVersionString(),
|
'versionstring'=>OC_Util::getVersionString(),
|
||||||
'edition'=> '',
|
'edition'=> '',
|
||||||
|
|
Loading…
Reference in New Issue