diff options
author | Richard Steinmetz <richard@steinmetz.cloud> | 2021-10-05 16:30:22 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-10-05 16:30:22 +0200 |
commit | c5cc4caeeffc494979107728c2211771ade77b4d (patch) | |
tree | 371a21bed60f96196e32c0f1ddc11150320d4c8c /lib | |
parent | b28f4989ffac9d86136da319ac71594520cb2af9 (diff) | |
parent | f47daa7ec3a2f276dab3bb01244ac04536997e97 (diff) | |
download | nextcloud-server-c5cc4caeeffc494979107728c2211771ade77b4d.tar.gz nextcloud-server-c5cc4caeeffc494979107728c2211771ade77b4d.zip |
Merge pull request #29053 from nextcloud/debt/noid/exit-code-versioncheck
Use proper exit code
Diffstat (limited to 'lib')
-rw-r--r-- | lib/versioncheck.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/versioncheck.php b/lib/versioncheck.php index d4e3e58a0c1..4b1d9dec4d7 100644 --- a/lib/versioncheck.php +++ b/lib/versioncheck.php @@ -30,7 +30,7 @@ if (PHP_VERSION_ID < 70300) { http_response_code(500); echo 'This version of Nextcloud requires at least PHP 7.3<br/>'; echo 'You are currently running ' . PHP_VERSION . '. Please update your PHP version.'; - exit(-1); + exit(1); } // Show warning if > PHP 8.0 is used as Nextcloud is not compatible with > PHP 8.0 for now @@ -38,5 +38,5 @@ if (PHP_VERSION_ID >= 80100) { http_response_code(500); echo 'This version of Nextcloud is not compatible with > PHP 8.0.<br/>'; echo 'You are currently running ' . PHP_VERSION . '.'; - exit(-1); + exit(1); } |