repair alma linux

old iso deprecated
added boot iso
changed mirror to official almalinux.org
versions 8 and 9 will download latest release
This commit is contained in:
zenobit 2023-09-30 06:50:02 +02:00
parent 9d0bf661c5
commit d8446ecd1a

View file

@ -288,11 +288,11 @@ function editions_agarimos() {
}
function releases_alma() {
echo 8.6 8.7 9.0 9.1
echo 8 9
}
function editions_alma() {
echo minimal dvd
echo boot minimal dvd
}
function releases_alpine() {
@ -1149,8 +1149,8 @@ function get_agarimos() {
function get_alma() {
local EDITION="${1:-}"
local HASH=""
local ISO="AlmaLinux-${RELEASE}-x86_64-${EDITION}.iso"
local URL="https://mirror.rackspace.com/almalinux/${RELEASE/beta-1/beta}/isos/x86_64/"
local ISO="AlmaLinux-${RELEASE}-latest-x86_64-${EDITION}.iso"
local URL="https://repo.almalinux.org/almalinux/${RELEASE}/isos/x86_64"
HASH="$(wget -q -O- "${URL}/CHECKSUM" | grep "(${ISO}" | cut -d' ' -f4)"
echo "${URL}/${ISO} ${HASH}"
}