diff --git a/spcd.sh b/spcd.sh index d1973ed..0ce5b56 100644 --- a/spcd.sh +++ b/spcd.sh @@ -611,6 +611,12 @@ spcd_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_sed "/etc/yum.repos.d/epel.repo" \ + "|^mirrorlist|# mirrorlist|" \ + "|https://download.example|${spcd_ip__epel}|" \ + "|^#baseurl|baseurl|" ;; *) ;; esac