Browse Source

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>
pull/1817/head
Kristof Provost 9 years ago
committed by Roeland Jago Douma
parent
commit
9963bdaeb9
No known key found for this signature in database GPG Key ID: 1E152838F164D13B
  1. 1
      status.php

1
status.php

@ -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…
Cancel
Save