From 55ad635b433aec59a0633141194395c163ec8efb Mon Sep 17 00:00:00 2001 From: Marc Beninca Date: Mon, 22 Jul 2024 17:12:44 +0200 Subject: [PATCH 1/3] epel/readme --- readme.md | 1 + 1 file changed, 1 insertion(+) 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 | From d2c710bee5a70813d8f17f743a6b88803f7a1524 Mon Sep 17 00:00:00 2001 From: Marc Beninca Date: Mon, 22 Jul 2024 20:47:56 +0200 Subject: [PATCH 2/3] 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 From 6777ca740fcd3d0b4dd37abf85b1cd4e6538268b Mon Sep 17 00:00:00 2001 From: Marc Beninca Date: Mon, 22 Jul 2024 20:52:58 +0200 Subject: [PATCH 3/3] epel/metalink --- spcd.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/spcd.sh b/spcd.sh index 0ce5b56..66492db 100644 --- a/spcd.sh +++ b/spcd.sh @@ -614,7 +614,7 @@ spcd_install_packages() { [ -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|" \ + "|^metalink|# metalink|" \ "|https://download.example|${spcd_ip__epel}|" \ "|^#baseurl|baseurl|" ;;