VMs: automatically update virtio-win iso list

This commit is contained in:
bergware
2021-11-05 16:48:31 +01:00
parent 6d816f51ae
commit f312d41be4
@@ -23,7 +23,7 @@ require_once "$docroot/plugins/dynamix.vm.manager/include/libvirt_helpers.php";
// get Fedora download archive
$fedora = '/var/tmp/fedora-virtio-isos';
$archive = 'https://fedorapeople.org/groups/virt/virtio-win/direct-downloads/archive-virtio';
exec("wget -T10 -qO- $archive|grep -Po '\"\\Kvirtio-win-[^/]+'|sort -Vr",$isos);
exec("wget -T10 -qO- $archive|grep -Po '\"\\Kvirtio-win-[^/]+'",$isos);
if (count($isos)>1) {
// delete obsolete entries