Unverified Commit ad1031f8 authored by Francesc Guasch's avatar Francesc Guasch Committed by GitHub
Browse files

fix(backend): Ubuntu 20.04 URL (#1496)

* fix(backend): Ubuntu 20.04 URL

closes issue #1494
parent 8dfd4817
......@@ -264,8 +264,8 @@ sub _update_isos {
,arch => 'amd64'
,xml => 'focal_fossa-amd64.xml'
,xml_volume => 'focal_fossa64-volume.xml'
,url => 'http://releases.ubuntu.com/20.04'
,file_re => '^ubuntu-20.04.1-desktop-amd64.iso'
,url => 'http://releases.ubuntu.com/20.04/'
,file_re => '^ubuntu-20.04.\d+-desktop-amd64.iso'
,sha256_url => '$url/SHA256SUMS'
,min_disk_size => '9'
}
......@@ -916,6 +916,9 @@ sub _remove_old_isos {
,"DELETE FROM iso_images "
." WHERE (name LIKE 'Ubuntu Focal%' OR name LIKE 'Ubuntu Bionic%' ) "
." AND ( md5 IS NOT NULL OR md5_url IS NOT NULL) "
,"DELETE FROM iso_images "
."WHERE name like 'Ubuntu Focal%' "
." AND file_re like '%20.04.1%'"
) {
my $sth = $CONNECTOR->dbh->prepare($sql);
$sth->execute();
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment