// for attended sysupgrade
function updatePackageList(version, target) {
// set available packages
- fetch(config.versions[version] + '/' + target + '/index.json')
+ fetch(config.asu_url + '/' + config.versions[version] + '/' + target + '/index.json')
.then(response => response.json())
.then(all_packages => {
setupAutocompleteList($('packages'), all_packages, true, _ => {}, textarea => {
setupSelectList($('versions'), Object.keys(config.versions), version => {
var url = config.versions[version];
if (config.asu_url) {
- url += "/profiles.json";
+ url = config.asu_url + '/' + url + '/profiles.json';
}
fetch(url)
.then(obj => {