Compare commits

...

3 commits

Author SHA1 Message Date
6777ca740f
epel/metalink
All checks were successful
/ job (push) Successful in 9m8s
2024-07-22 20:52:58 +02:00
d2c710bee5
epel/url 2024-07-22 20:47:56 +02:00
55ad635b43
epel/readme 2024-07-22 17:12:44 +02:00
2 changed files with 7 additions and 0 deletions

View file

@ -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_ALPINE | Alpine repository URL | https://dl-cdn.alpinelinux.org |
| SPCD_URL_ARCH | Arch repository URL | https://geo.mirror.pkgbuild.com | | SPCD_URL_ARCH | Arch repository URL | https://geo.mirror.pkgbuild.com |
| SPCD_URL_DEBIAN | Debian repository URL | https://deb.debian.org | | 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_FEDORA | Fedora repository URL | https://rpmfind.net |
| SPCD_URL_ROCKY | Rocky repository URL | https://dl.rockylinux.org | | SPCD_URL_ROCKY | Rocky repository URL | https://dl.rockylinux.org |
| SPCD_URL_UBUNTU | Ubuntu repository URL | https://ubuntu.mirrors.ovh.net | | SPCD_URL_UBUNTU | Ubuntu repository URL | https://ubuntu.mirrors.ovh.net |

View file

@ -611,6 +611,12 @@ spcd_install_packages() {
case "${SPCD_OS_ID}" in case "${SPCD_OS_ID}" in
"${SPCD_OS_ALMA}" | "${SPCD_OS_ROCKY}") "${SPCD_OS_ALMA}" | "${SPCD_OS_ROCKY}")
spcd_install_package "epel-release" 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 esac