Refactor get_elementary() to add create_vm() compatibility

This commit is contained in:
Martin Wimpress 2022-02-23 10:30:45 +00:00
parent cf231a8e2c
commit 0a1877d4c3
No known key found for this signature in database
GPG key ID: 61DF940515E06DA3

View file

@ -771,14 +771,10 @@ function get_devuan() {
}
function get_elementary() {
local ISO=""
local ISOTAG="20211218-rc"
local URL=""
ISO="elementaryos-${RELEASE}-stable.${ISOTAG}.iso"
URL="https://ams3.dl.elementary.io/download/$(date +%s | base64)=/${ISO}"
web_get "${URL}" "${VM_PATH}"
make_vm_config "${ISO}"
local HASH=""
local ISO="elementaryos-${RELEASE}-stable.20211218-rc.iso"
local URL="https://ams3.dl.elementary.io/download"
echo "${URL}/$(date +%s | base64)/${ISO} ${HASH}"
}
function get_fedora() {