This commit is contained in:
Marc Beninca 2024-08-27 22:26:50 +02:00
parent 048a84c0fb
commit 1b0c934fee
Signed by: marc.beninca
GPG key ID: 9C7613450C80C24F

View file

@ -633,7 +633,9 @@ spcd_step__environment_defaults() {
[ -n "${SPCD_URL_DEBIAN}" ] ||
SPCD_URL_DEBIAN="https://deb.debian.org/debian"
[ -n "${SPCD_URL_EPEL}" ] ||
SPCD_URL_EPEL="https://dl.fedoraproject.org"
# /$releasever/Everything/…
# /testing/$releasever/Everything/…
SPCD_URL_EPEL="https://dl.fedoraproject.org/pub/epel"
[ -n "${SPCD_URL_FEDORA}" ] ||
# /releases/$releasever/Everything/…
# /updates/$releasever/Everything/…
@ -1151,11 +1153,9 @@ spcd_step__install_packages() {
case "${SPCD_OS_ID}" in
"${SPCD_OS_ALMA}" | "${SPCD_OS_ROCKY}")
spcd_install_package "epel-release"
[ -n "${SPCD_URL_EPEL}" ] && spcd_ip__epel="${SPCD_URL_EPEL}" ||
spcd_ip__epel="https://dl.fedoraproject.org"
spcd_os_sed "/etc/yum.repos.d/epel.repo" \
"|^metalink|#metalink|" \
"|https://download.example|${spcd_ip__epel}|" \
"|https://download.example/pub/epel|${SPCD_URL_EPEL}|" \
"|^#baseurl|baseurl|"
;;
*) ;;