Skip to content

Commit

Permalink
Expose the needupgrade status (nextcloud#26209)
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
kprovost authored and rullzer committed Oct 20, 2016
1 parent b946e3e commit 9963bda
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions status.php
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@
$values=array(
'installed'=>$installed,
'maintenance' => $maintenance,
'needsDbUpgrade' => \OCP\Util::needUpgrade(),
'version'=>implode('.', \OCP\Util::getVersion()),
'versionstring'=>OC_Util::getVersionString(),
'edition'=> '',
Expand Down

0 comments on commit 9963bda

Please sign in to comment.