diff options
author | Kristof Provost <github@sigsegv.be> | 2016-09-29 17:14:00 +0200 |
---|---|---|
committer | Roeland Jago Douma <roeland@famdouma.nl> | 2016-10-20 14:24:23 +0200 |
commit | 9963bdaeb907eae4381625e4dc97dc405a0fad40 (patch) | |
tree | 3314caebe1fb12ac47c45bbebb0e628331b8e771 /status.php | |
parent | b946e3ecfb2478f7aaca82c11367a2be8455a2d0 (diff) | |
download | nextcloud-server-9963bdaeb907eae4381625e4dc97dc405a0fad40.tar.gz nextcloud-server-9963bdaeb907eae4381625e4dc97dc405a0fad40.zip |
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>
Diffstat (limited to 'status.php')
-rw-r--r-- | status.php | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/status.php b/status.php index a4749bd8b5d..3d2d8f59d75 100644 --- a/status.php +++ b/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'=> '', |