aboutsummaryrefslogtreecommitdiffstats
path: root/core/Command/Upgrade.php
diff options
context:
space:
mode:
authorJürgen Haas <juergen@paragon-es.de>2016-08-03 15:51:55 +0200
committerGitHub <noreply@github.com>2016-08-03 15:51:55 +0200
commitaeb5dfa4ac7f586e7912a2a00e966d8c4c539abb (patch)
treeadf0a9690ee31b3edd182938e851886bdf6ddfbc /core/Command/Upgrade.php
parent8ad79eb09765393b83982f1c4503d9659bb08325 (diff)
downloadnextcloud-server-aeb5dfa4ac7f586e7912a2a00e966d8c4c539abb.tar.gz
nextcloud-server-aeb5dfa4ac7f586e7912a2a00e966d8c4c539abb.zip
Exit from upgrade without reporting error
As reported at https://help.nextcloud.com/t/silent-mode-for-occ-upgrade/2120 we should exit with a return value of 0 (zero) if the current instance is already up to date so that automatic deployment tools don't recognize that as an error.
Diffstat (limited to 'core/Command/Upgrade.php')
-rw-r--r--core/Command/Upgrade.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/core/Command/Upgrade.php b/core/Command/Upgrade.php
index caf92492d90..77d67534c6a 100644
--- a/core/Command/Upgrade.php
+++ b/core/Command/Upgrade.php
@@ -47,7 +47,7 @@ class Upgrade extends Command {
const ERROR_SUCCESS = 0;
const ERROR_NOT_INSTALLED = 1;
const ERROR_MAINTENANCE_MODE = 2;
- const ERROR_UP_TO_DATE = 3;
+ const ERROR_UP_TO_DATE = 0;
const ERROR_INVALID_ARGUMENTS = 4;
const ERROR_FAILURE = 5;