From a78ab882d3809e48ec343ba2c7988cc9dccf8585 Mon Sep 17 00:00:00 2001 From: Martin Wimpress Date: Mon, 21 Feb 2022 15:05:15 +0000 Subject: [PATCH] Refactor Alma Linux support to add editions --- quickget | 15 +++++++++++---- 1 file changed, 11 insertions(+), 4 deletions(-) diff --git a/quickget b/quickget index 23749bb..bb2b7f5 100755 --- a/quickget +++ b/quickget @@ -199,11 +199,15 @@ function os_support() { } function releases_alma() { - # consider flavours for boot and dvd as well as echo 8.4 \ 8.5 } +function editions_alma() { + echo minimal \ + dvd +} + function releases_alpine() { echo latest \ 3.12 \ @@ -748,14 +752,17 @@ function get_android() { } function get_alma() { + local EDITION="" local HASH="" local ISO="" - local ISOTYPE="minimal" local URL="" - validate_release "releases_alma" + if [ -n "${1}" ]; then + EDITION="${1}" + fi + URL="http://lon.mirror.rackspace.com/almalinux/${RELEASE}/isos/x86_64/" - ISO="AlmaLinux-${RELEASE}-x86_64-${ISOTYPE}.iso" + ISO="AlmaLinux-${RELEASE}-x86_64-${EDITION}.iso" HASH="$(wget -q -O- "${URL}/CHECKSUM" | grep \("${ISO}" | cut -d'\' -f4)" web_get "${URL}/${ISO}" "${VM_PATH}" check_hash "${ISO}" "${HASH}"