This commit is contained in:
Marc Beninca 2024-08-27 22:44:57 +02:00
parent 1b0c934fee
commit 9623c7f483
Signed by: marc.beninca
GPG key ID: 9C7613450C80C24F

View file

@ -1153,10 +1153,29 @@ spcd_step__install_packages() {
case "${SPCD_OS_ID}" in case "${SPCD_OS_ID}" in
"${SPCD_OS_ALMA}" | "${SPCD_OS_ROCKY}") "${SPCD_OS_ALMA}" | "${SPCD_OS_ROCKY}")
spcd_install_package "epel-release" spcd_install_package "epel-release"
spcd_os_sed "/etc/yum.repos.d/epel.repo" \ case "${SPCD_OS_VERSION}" in
"9")
set -- \
"-testing"
""
;;
"8")
set -- \
"-modular" \
"-testing-modular" \
"-testing" \
""
;;
*) ;;
esac
for spcd_spr__file in "${@}"; do
spcd_os_sed "/etc/yum.repos.d/epel${spcd_spr__file}.repo" \
"|^metalink|#metalink|" \ "|^metalink|#metalink|" \
"|https://download.example/pub/epel|${SPCD_URL_EPEL}|" \ "|https://download.example/pub/epel|${SPCD_URL_EPEL}|" \
"|^#baseurl|baseurl|" "|^#baseurl|baseurl|"
done
spcd_spr__file="/etc/yum.repos.d/epel-cisco-openh264.repo"
"|^enabled=1|#enabled=0|"
;; ;;
*) ;; *) ;;
esac esac