Refactor get_elementary()

This commit is contained in:
Martin Wimpress 2022-02-22 15:03:20 +00:00
parent 0fe5232a01
commit 8050abc6f0
No known key found for this signature in database
GPG Key ID: 61DF940515E06DA3
1 changed files with 1 additions and 4 deletions

View File

@ -921,12 +921,9 @@ function get_elementary() {
local ISO=""
local ISOTAG="20211218-rc"
local URL=""
local B66tim=""
B66tim=$(date +%s | base64)
ISO="elementaryos-${RELEASE}-stable.${ISOTAG}.iso"
# TODO: derive region from geoIP
URL="https://ams3.dl.elementary.io/download/${B66tim}=/${ISO}"
URL="https://ams3.dl.elementary.io/download/$(date +%s | base64)=/${ISO}"
web_get "${URL}" "${VM_PATH}"
make_vm_config "${ISO}"
}