Use correct update server
Signed-off-by: Morris Jobke <hey@morrisjobke.de>
This commit is contained in:
parent
46a34f1e27
commit
4739076474
|
@ -77,7 +77,7 @@ class Admin implements ISettings {
|
||||||
|
|
||||||
$notifyGroups = json_decode($this->config->getAppValue('updatenotification', 'notify_groups', '["admin"]'), true);
|
$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);
|
$updateServerURL = $this->config->getSystemValue('updater.server.url', $defaultUpdateServerURL);
|
||||||
|
|
||||||
$params = [
|
$params = [
|
||||||
|
|
|
@ -81,8 +81,8 @@ class AdminTest extends TestCase {
|
||||||
$this->config
|
$this->config
|
||||||
->expects($this->once())
|
->expects($this->once())
|
||||||
->method('getSystemValue')
|
->method('getSystemValue')
|
||||||
->with('updater.server.url', 'https://updates.nextcloud.com/server/')
|
->with('updater.server.url', 'https://updates.nextcloud.com/updater_server/')
|
||||||
->willReturn('https://updates.nextcloud.com/server/');
|
->willReturn('https://updates.nextcloud.com/updater_server/');
|
||||||
$this->dateTimeFormatter
|
$this->dateTimeFormatter
|
||||||
->expects($this->once())
|
->expects($this->once())
|
||||||
->method('formatDateTime')
|
->method('formatDateTime')
|
||||||
|
@ -108,7 +108,7 @@ class AdminTest extends TestCase {
|
||||||
'downloadLink' => 'https://downloads.nextcloud.org/server',
|
'downloadLink' => 'https://downloads.nextcloud.org/server',
|
||||||
'updaterEnabled' => true,
|
'updaterEnabled' => true,
|
||||||
'isDefaultUpdateServerURL' => true,
|
'isDefaultUpdateServerURL' => true,
|
||||||
'updateServerURL' => 'https://updates.nextcloud.com/server/',
|
'updateServerURL' => 'https://updates.nextcloud.com/updater_server/',
|
||||||
'notify_groups' => 'admin',
|
'notify_groups' => 'admin',
|
||||||
];
|
];
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue