summaryrefslogtreecommitdiffstats
path: root/apps/updatenotification
diff options
context:
space:
mode:
authorMorris Jobke <hey@morrisjobke.de>2018-02-01 13:22:36 +0100
committerMorris Jobke <hey@morrisjobke.de>2018-02-01 13:22:36 +0100
commit47390764748574e0c0979a70f45ae7dd3920bb05 (patch)
treeb90b90ec1089c02be0d8424d3f7f043564bc0187 /apps/updatenotification
parent46a34f1e27d11b042b0bcf1216f935efd6d04ce1 (diff)
downloadnextcloud-server-47390764748574e0c0979a70f45ae7dd3920bb05.tar.gz
nextcloud-server-47390764748574e0c0979a70f45ae7dd3920bb05.zip
Use correct update server
Signed-off-by: Morris Jobke <hey@morrisjobke.de>
Diffstat (limited to 'apps/updatenotification')
-rw-r--r--apps/updatenotification/lib/Settings/Admin.php2
-rw-r--r--apps/updatenotification/tests/Settings/AdminTest.php6
2 files changed, 4 insertions, 4 deletions
diff --git a/apps/updatenotification/lib/Settings/Admin.php b/apps/updatenotification/lib/Settings/Admin.php
index 7fb6cc99dea..cf65aed5e2c 100644
--- a/apps/updatenotification/lib/Settings/Admin.php
+++ b/apps/updatenotification/lib/Settings/Admin.php
@@ -77,7 +77,7 @@ class Admin implements ISettings {
$notifyGroups = json_decode($this->config->getAppValue('updatenotification', 'notify_groups', '["admin"]'), true);
- $defaultUpdateServerURL = 'https://updates.nextcloud.com/server/';
+ $defaultUpdateServerURL = 'https://updates.nextcloud.com/updater_server/';
$updateServerURL = $this->config->getSystemValue('updater.server.url', $defaultUpdateServerURL);
$params = [
diff --git a/apps/updatenotification/tests/Settings/AdminTest.php b/apps/updatenotification/tests/Settings/AdminTest.php
index 12734b808c0..02f505517e1 100644
--- a/apps/updatenotification/tests/Settings/AdminTest.php
+++ b/apps/updatenotification/tests/Settings/AdminTest.php
@@ -81,8 +81,8 @@ class AdminTest extends TestCase {
$this->config
->expects($this->once())
->method('getSystemValue')
- ->with('updater.server.url', 'https://updates.nextcloud.com/server/')
- ->willReturn('https://updates.nextcloud.com/server/');
+ ->with('updater.server.url', 'https://updates.nextcloud.com/updater_server/')
+ ->willReturn('https://updates.nextcloud.com/updater_server/');
$this->dateTimeFormatter
->expects($this->once())
->method('formatDateTime')
@@ -108,7 +108,7 @@ class AdminTest extends TestCase {
'downloadLink' => 'https://downloads.nextcloud.org/server',
'updaterEnabled' => true,
'isDefaultUpdateServerURL' => true,
- 'updateServerURL' => 'https://updates.nextcloud.com/server/',
+ 'updateServerURL' => 'https://updates.nextcloud.com/updater_server/',
'notify_groups' => 'admin',
];