epel
This commit is contained in:
parent
1b0c934fee
commit
9623c7f483
1 changed files with 23 additions and 4 deletions
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue