Signed-off-by: Morris Jobke <hey@morrisjobke.de>
*/
public static function getChannel() {
OC_Util::loadVersion();
-
- // Allow overriding update channel
- if (\OC::$server->getSystemConfig()->getValue('installed', false)) {
- self::$versionCache['OC_Channel'] = \OC::$server->getAppConfig()->getValue('core', 'OC_Channel');
- }
-
- return self::$versionCache['OC_Channel'];
+ return \OC::$server->getConfig()->getSystemValue('updater.release.channel', self::$versionCache['OC_Channel']);
}
/**
* @since 8.1.0
*/
public static function setChannel($channel) {
- //Flush timestamp to reload version.php
- \OC::$server->getAppConfig()->setValue('core', 'OC_Channel', $channel);
\OC::$server->getConfig()->setSystemValue('updater.release.channel', $channel);
}
$OC_VersionCanBeUpgradedFrom = array(9, 1);
-// The ownCloud channel
+// default Nextcloud channel
$OC_Channel = 'git';
// The build number