This commit is contained in:
Marc Beninca 2024-08-31 10:54:54 +02:00
parent 5c0956c09b
commit 25e08725a8
Signed by: marc.beninca
GPG key ID: 9C7613450C80C24F

View file

@ -1284,6 +1284,7 @@ spcd_step__python_modules() {
spcd_step__install_packages() { spcd_step__install_packages() {
spcd_step_in "OS packages" spcd_step_in "OS packages"
local file
# epel # epel
spcd_step "EPEL" spcd_step "EPEL"
case "${SPCD_OS_ID}" in case "${SPCD_OS_ID}" in
@ -1304,15 +1305,15 @@ spcd_step__install_packages() {
;; ;;
*) ;; *) ;;
esac esac
for spcd_spr__file in "${@}"; do for file in "${@}"; do
spcd_os_sed "/etc/yum.repos.d/epel${spcd_spr__file}.repo" \ spcd_os_sed "/etc/yum.repos.d/epel${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 done
spcd_spr__file="/etc/yum.repos.d/epel-cisco-openh264.repo" file="/etc/yum.repos.d/epel-cisco-openh264.repo"
if [ -f "${spcd_spr__file}" ]; then if [ -f "${spcd_spr__file}" ]; then
spcd_os_sed "${spcd_spr__file}" \ spcd_os_sed "${file}" \
"|^enabled=1|#enabled=0|" "|^enabled=1|#enabled=0|"
fi fi
;; ;;