Document updater channel & check for correct PHP version in updater
* see https://github.com/nextcloud/updater/issues/53 Signed-off-by: Morris Jobke <hey@morrisjobke.de>
This commit is contained in:
parent
fcb7a1e458
commit
5fd960b370
|
@ -521,6 +521,17 @@ $CONFIG = array(
|
|||
*/
|
||||
'updater.server.url' => 'https://updates.nextcloud.com/updater_server/',
|
||||
|
||||
/**
|
||||
* The channel that Nextcloud should use to look for updates
|
||||
*
|
||||
* Supported values:
|
||||
* - ``daily``
|
||||
* - ``beta`
|
||||
* - ``stable``
|
||||
* - ``production``
|
||||
*/
|
||||
'updater.release.channel' => 'stable',
|
||||
|
||||
/**
|
||||
* Is Nextcloud connected to the Internet or running in a closed network?
|
||||
*/
|
||||
|
|
|
@ -73,6 +73,9 @@ class VersionCheck {
|
|||
$version['updatechannel'] = \OC_Util::getChannel();
|
||||
$version['edition'] = \OC_Util::getEditionString();
|
||||
$version['build'] = \OC_Util::getBuild();
|
||||
$version['php_major'] = PHP_MAJOR_VERSION;
|
||||
$version['php_minor'] = PHP_MINOR_VERSION;
|
||||
$version['php_release'] = PHP_RELEASE_VERSION;
|
||||
$versionString = implode('x', $version);
|
||||
|
||||
//fetch xml data from updater
|
||||
|
|
|
@ -50,7 +50,7 @@ class VersionCheckTest extends \Test\TestCase {
|
|||
* @return string
|
||||
*/
|
||||
private function buildUpdateUrl($baseUrl) {
|
||||
return $baseUrl . '?version='.implode('x', Util::getVersion()).'xinstalledatxlastupdatedatx'.\OC_Util::getChannel().'x'.\OC_Util::getEditionString().'x';
|
||||
return $baseUrl . '?version='.implode('x', Util::getVersion()).'xinstalledatxlastupdatedatx'.\OC_Util::getChannel().'x'.\OC_Util::getEditionString().'xx'.PHP_MAJOR_VERSION.'x'.PHP_MINOR_VERSION.'x'.PHP_RELEASE_VERSION;
|
||||
}
|
||||
|
||||
public function testCheckInCache() {
|
||||
|
|
Loading…
Reference in New Issue