repos/alma
This commit is contained in:
parent
99eef56d40
commit
54ba6c2bdb
1 changed files with 33 additions and 6 deletions
|
@ -18,7 +18,7 @@
|
|||
[ -n "${SPCD_REF_STAGING}" ] || SPCD_REF_STAGING="dev"
|
||||
|
||||
[ -n "${SPCD_URL_ALMA}" ] ||
|
||||
SPCD_URL_ALMA="https://repo.almalinux.org/almalinux"
|
||||
SPCD_URL_ALMA="https://repo.almalinux.org"
|
||||
[ -n "${SPCD_URL_ALPINE}" ] ||
|
||||
SPCD_URL_ALPINE="https://dl-cdn.alpinelinux.org/alpine"
|
||||
[ -n "${SPCD_URL_ARCH}" ] ||
|
||||
|
@ -828,13 +828,40 @@ spcd_step__packages_set_repositories() {
|
|||
case "${SPCD_OS_ID}" in
|
||||
"${SPCD_OS_ALMA}")
|
||||
case "${SPCD_OS_VERSION}" in
|
||||
"8") spcd_spr__file="/etc/yum.repos.d/almalinux.repo" ;;
|
||||
"9") spcd_spr__file="/etc/yum.repos.d/almalinux-baseos.repo" ;;
|
||||
"9")
|
||||
set -- \
|
||||
"-appstream" \
|
||||
"-baseos" \
|
||||
"-crb" \
|
||||
"-extras" \
|
||||
"-highavailability" \
|
||||
"-nfv" \
|
||||
"-plus" \
|
||||
"-resilientstorage" \
|
||||
"-rt" \
|
||||
"-sap" \
|
||||
"-saphana"
|
||||
;;
|
||||
"8")
|
||||
set -- \
|
||||
"" \
|
||||
"-ha" \
|
||||
"-nfv" \
|
||||
"-plus" \
|
||||
"-powertools" \
|
||||
"-resilientstorage" \
|
||||
"-rt" \
|
||||
"-sap" \
|
||||
"-saphana"
|
||||
;;
|
||||
*) ;;
|
||||
esac
|
||||
spcd_os_sed "${spcd_spr__file}" \
|
||||
"|^mirrorlist|# mirrorlist|" \
|
||||
"|^# baseurl|baseurl|"
|
||||
for spcd_spr__file in "${@}"; do
|
||||
spcd_os_sed "/etc/yum.repos.d/almalinux${spcd_spr__file}.repo" \
|
||||
"|^mirrorlist|# mirrorlist|" \
|
||||
"|https://repo.almalinux.org|${SPCD_URL_ALMA}|" \
|
||||
"|^# baseurl|baseurl|"
|
||||
done
|
||||
;;
|
||||
"${SPCD_OS_ALPINE}")
|
||||
spcd_os_write "/etc/apk/repositories" "\
|
||||
|
|
Loading…
Reference in a new issue