Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix url and iso name for rockylinux versions #708

Merged
merged 1 commit into from
Jun 14, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 9 additions & 6 deletions quickget
Original file line number Diff line number Diff line change
Expand Up @@ -536,13 +536,11 @@ function get_rebornos() {
}

function releases_rockylinux() {
echo 8.3 8.4 8.5 9.0 9.1
echo 8.3 8.4 8.5 8.6 8.7 9.0 9.1
}

# Rocky have renamed dvd1 -> dvd at 9.0
function editions_rockylinux() {
echo minimal \
"dvd (dvd1 prior to 9.0)"
echo minimal dvd boot
}

function releases_siduction() {
Expand Down Expand Up @@ -1629,13 +1627,18 @@ function get_reactos() {

function get_rockylinux() {
local EDITION="${1:-}"
if [[ "${RELEASE}" =~ ^8. ]] && [[ "${EDITION}" == "dvd" ]]
then
EDITION="dvd1"
fi
local HASH=""
local ISO="Rocky-${RELEASE}-x86_64-${EDITION}.iso"
local URL=""

case ${RELEASE} in
9.1) URL="https://download.rockylinux.org/pub/rocky/${RELEASE}/isos/x86_64";;
*) URL="http://dl.rockylinux.org/vault/rocky/${RELEASE}/isos/x86_64/";;
9.1) URL="https://download.rockylinux.org/pub/rocky/9/isos/x86_64";;
8.7) URL="https://download.rockylinux.org/pub/rocky/8/isos/x86_64";;
*) URL="http://dl.rockylinux.org/vault/rocky/${RELEASE}/isos/x86_64";;
esac
HASH=$(wget -q -O- "${URL}/CHECKSUM" | grep "SHA256" | grep "${ISO})" | cut -d' ' -f4)
echo "${URL}/${ISO} ${HASH}"
Expand Down