diff options
author | Lukas Reschke <lukas@statuscode.ch> | 2017-04-17 19:42:59 +0300 |
---|---|---|
committer | Lukas Reschke <lukas@statuscode.ch> | 2017-04-17 19:42:59 +0300 |
commit | 1b5e4b7e3a7b853629d2bd68ebc1e670240764c1 (patch) | |
tree | 5a5b0e6824bc14a9cec4f761adadafe95c6b142a | |
parent | dbaec87067c4e6aa7b1071e23e08399024b23aba (diff) |
Also replace ocs/v2.php
Fixes https://github.com/nextcloud/updater/issues/99, otherwise clients may get a 404 instead of a 503 on the /ocs/v2.php endpoint
Signed-off-by: Lukas Reschke <lukas@statuscode.ch>
-rw-r--r-- | index.php | 3 | ||||
-rw-r--r-- | lib/Updater.php | 3 | ||||
-rwxr-xr-x | updater.phar | bin | 596489 -> 596540 bytes |
3 files changed, 6 insertions, 0 deletions
@@ -747,6 +747,7 @@ EOF; 'remote.php', 'public.php', 'ocs/v1.php', + 'ocs/v2.php', ]; $content = "<?php\nhttp_response_code(503);\ndie('Update in process.');"; @@ -842,6 +843,7 @@ EOF; 'remote.php', 'public.php', 'ocs/v1.php', + 'ocs/v2.php', 'config', 'themes', 'apps', @@ -950,6 +952,7 @@ EOF; 'remote.php', 'public.php', 'ocs/v1.php', + 'ocs/v2.php', ]; $storageLocation = $this->getDataDirectoryLocation() . '/updater-'.$this->getConfigOption('instanceid') . '/downloads/nextcloud/'; $this->silentLog('[info] storage location: ' . $storageLocation); diff --git a/lib/Updater.php b/lib/Updater.php index e291fb4..d5ba35c 100644 --- a/lib/Updater.php +++ b/lib/Updater.php @@ -632,6 +632,7 @@ EOF; 'remote.php', 'public.php', 'ocs/v1.php', + 'ocs/v2.php', ]; $content = "<?php\nhttp_response_code(503);\ndie('Update in process.');"; @@ -727,6 +728,7 @@ EOF; 'remote.php', 'public.php', 'ocs/v1.php', + 'ocs/v2.php', 'config', 'themes', 'apps', @@ -835,6 +837,7 @@ EOF; 'remote.php', 'public.php', 'ocs/v1.php', + 'ocs/v2.php', ]; $storageLocation = $this->getDataDirectoryLocation() . '/updater-'.$this->getConfigOption('instanceid') . '/downloads/nextcloud/'; $this->silentLog('[info] storage location: ' . $storageLocation); diff --git a/updater.phar b/updater.phar Binary files differindex 6692c5c..187dd8f 100755 --- a/updater.phar +++ b/updater.phar |