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

github.com/nextcloud/updater.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLukas Reschke <lukas@statuscode.ch>2017-04-17 19:42:59 +0300
committerLukas Reschke <lukas@statuscode.ch>2017-04-17 19:42:59 +0300
commit1b5e4b7e3a7b853629d2bd68ebc1e670240764c1 (patch)
tree5a5b0e6824bc14a9cec4f761adadafe95c6b142a
parentdbaec87067c4e6aa7b1071e23e08399024b23aba (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.php3
-rw-r--r--lib/Updater.php3
-rwxr-xr-xupdater.pharbin596489 -> 596540 bytes
3 files changed, 6 insertions, 0 deletions
diff --git a/index.php b/index.php
index 6013b94..95d75c4 100644
--- a/index.php
+++ b/index.php
@@ -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
index 6692c5c..187dd8f 100755
--- a/updater.phar
+++ b/updater.phar
Binary files differ