Generate elementary link (#167)

This commit is contained in:
Phil Clifford 2021-10-28 07:27:40 +01:00 committed by GitHub
parent dcd5039629
commit d0ffb6f4cb
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -617,10 +617,14 @@ EOF
function get_elementary() {
local ISO=""
local URL=""
local B66tim=""
validate_release "releases_elementary"
B66tim=$(date +%s | base64 )
ISO="elementaryos-${RELEASE}-stable.20211005.iso"
URL="https://ams3.dl.elementary.io/download/MTYzNTM1NDc4OQ==/${ISO}"
# TODO: derive region from geoIP
URL="https://ams3.dl.elementary.io/download/${B66tim}=/${ISO}"
web_get "${URL}" "${VM_PATH}"
make_vm_config "${ISO}"
}