From d2c710bee5a70813d8f17f743a6b88803f7a1524 Mon Sep 17 00:00:00 2001 From: Marc Beninca Date: Mon, 22 Jul 2024 20:47:56 +0200 Subject: [PATCH] epel/url --- spcd.sh | 6 ++++++ 1 file changed, 6 insertions(+) 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