Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/server.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKristof Provost <github@sigsegv.be>2016-09-29 18:14:00 +0300
committerRoeland Jago Douma <roeland@famdouma.nl>2016-10-20 15:24:23 +0300
commit9963bdaeb907eae4381625e4dc97dc405a0fad40 (patch)
tree3314caebe1fb12ac47c45bbebb0e628331b8e771 /status.php
parentb946e3ecfb2478f7aaca82c11367a2be8455a2d0 (diff)
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.php1
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'=> '',