]> source.dussan.org Git - nextcloud-server.git/commitdiff
Exit from upgrade without reporting error 718/head
authorJürgen Haas <juergen@paragon-es.de>
Wed, 3 Aug 2016 13:51:55 +0000 (15:51 +0200)
committerGitHub <noreply@github.com>
Wed, 3 Aug 2016 13:51:55 +0000 (15:51 +0200)
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.

core/Command/Upgrade.php

index caf92492d9069132f17824a37799986fbbfe03e1..77d67534c6a1fb553fc5aa80a1d2907eefba0405 100644 (file)
@@ -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;