repos/alma

This commit is contained in:
Marc Beninca 2024-08-27 16:53:05 +02:00
parent 99eef56d40
commit 54ba6c2bdb
Signed by: marc.beninca
GPG key ID: 9C7613450C80C24F

View file

@ -18,7 +18,7 @@
[ -n "${SPCD_REF_STAGING}" ] || SPCD_REF_STAGING="dev" [ -n "${SPCD_REF_STAGING}" ] || SPCD_REF_STAGING="dev"
[ -n "${SPCD_URL_ALMA}" ] || [ -n "${SPCD_URL_ALMA}" ] ||
SPCD_URL_ALMA="https://repo.almalinux.org/almalinux" SPCD_URL_ALMA="https://repo.almalinux.org"
[ -n "${SPCD_URL_ALPINE}" ] || [ -n "${SPCD_URL_ALPINE}" ] ||
SPCD_URL_ALPINE="https://dl-cdn.alpinelinux.org/alpine" SPCD_URL_ALPINE="https://dl-cdn.alpinelinux.org/alpine"
[ -n "${SPCD_URL_ARCH}" ] || [ -n "${SPCD_URL_ARCH}" ] ||
@ -828,13 +828,40 @@ spcd_step__packages_set_repositories() {
case "${SPCD_OS_ID}" in case "${SPCD_OS_ID}" in
"${SPCD_OS_ALMA}") "${SPCD_OS_ALMA}")
case "${SPCD_OS_VERSION}" in case "${SPCD_OS_VERSION}" in
"8") spcd_spr__file="/etc/yum.repos.d/almalinux.repo" ;; "9")
"9") spcd_spr__file="/etc/yum.repos.d/almalinux-baseos.repo" ;; set -- \
"-appstream" \
"-baseos" \
"-crb" \
"-extras" \
"-highavailability" \
"-nfv" \
"-plus" \
"-resilientstorage" \
"-rt" \
"-sap" \
"-saphana"
;;
"8")
set -- \
"" \
"-ha" \
"-nfv" \
"-plus" \
"-powertools" \
"-resilientstorage" \
"-rt" \
"-sap" \
"-saphana"
;;
*) ;; *) ;;
esac esac
spcd_os_sed "${spcd_spr__file}" \ for spcd_spr__file in "${@}"; do
spcd_os_sed "/etc/yum.repos.d/almalinux${spcd_spr__file}.repo" \
"|^mirrorlist|# mirrorlist|" \ "|^mirrorlist|# mirrorlist|" \
"|https://repo.almalinux.org|${SPCD_URL_ALMA}|" \
"|^# baseurl|baseurl|" "|^# baseurl|baseurl|"
done
;; ;;
"${SPCD_OS_ALPINE}") "${SPCD_OS_ALPINE}")
spcd_os_write "/etc/apk/repositories" "\ spcd_os_write "/etc/apk/repositories" "\