From 9963bdaeb907eae4381625e4dc97dc405a0fad40 Mon Sep 17 00:00:00 2001 From: Kristof Provost Date: Thu, 29 Sep 2016 17:14:00 +0200 Subject: [PATCH] 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 --- status.php | 1 + 1 file changed, 1 insertion(+) diff --git a/status.php b/status.php index a4749bd8b5..3d2d8f59d7 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'=> '',