From 9623c7f48394912e74b9899c43ba0e16e537dbc6 Mon Sep 17 00:00:00 2001 From: Marc Beninca Date: Tue, 27 Aug 2024 22:44:57 +0200 Subject: [PATCH] epel --- spcd/bootstrap.sh | 27 +++++++++++++++++++++++---- 1 file changed, 23 insertions(+), 4 deletions(-) diff --git a/spcd/bootstrap.sh b/spcd/bootstrap.sh index 96f21a8..682714c 100644 --- a/spcd/bootstrap.sh +++ b/spcd/bootstrap.sh @@ -1153,10 +1153,29 @@ spcd_step__install_packages() { case "${SPCD_OS_ID}" in "${SPCD_OS_ALMA}" | "${SPCD_OS_ROCKY}") spcd_install_package "epel-release" - spcd_os_sed "/etc/yum.repos.d/epel.repo" \ - "|^metalink|#metalink|" \ - "|https://download.example/pub/epel|${SPCD_URL_EPEL}|" \ - "|^#baseurl|baseurl|" + 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|" \ + "|https://download.example/pub/epel|${SPCD_URL_EPEL}|" \ + "|^#baseurl|baseurl|" + done + spcd_spr__file="/etc/yum.repos.d/epel-cisco-openh264.repo" + "|^enabled=1|#enabled=0|" ;; *) ;; esac