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(
|
||||
'installed'=>$installed,
|
||||
'maintenance' => $maintenance,
|
||||
'needsDbUpgrade' => \OCP\Util::needUpgrade(),
|
||||
'version'=>implode('.', \OCP\Util::getVersion()),
|
||||
'versionstring'=>OC_Util::getVersionString(),
|
||||
'edition'=> '',
|
||||
|
|
Loading…
Reference in New Issue