diff --git a/readme.md b/readme.md index df1f3d1..e25eb8e 100644 --- a/readme.md +++ b/readme.md @@ -54,6 +54,7 @@ from various contexts of CA, CI and OCI / OS. | SPCD_URL_ALPINE | Alpine repository URL | https://dl-cdn.alpinelinux.org | | SPCD_URL_ARCH | Arch repository URL | https://geo.mirror.pkgbuild.com | | SPCD_URL_DEBIAN | Debian repository URL | https://deb.debian.org | +| SPCD_URL_EPEL | EPEL repository URL | https://dl.fedoraproject.org | | SPCD_URL_FEDORA | Fedora repository URL | https://rpmfind.net | | SPCD_URL_ROCKY | Rocky repository URL | https://dl.rockylinux.org | | SPCD_URL_UBUNTU | Ubuntu repository URL | https://ubuntu.mirrors.ovh.net | diff --git a/spcd.sh b/spcd.sh index d1973ed..66492db 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" \ + "|^metalink|# metalink|" \ + "|https://download.example|${spcd_ip__epel}|" \ + "|^#baseurl|baseurl|" ;; *) ;; esac