Compare commits
3 commits
99312565b8
...
6777ca740f
Author | SHA1 | Date | |
---|---|---|---|
6777ca740f | |||
d2c710bee5 | |||
55ad635b43 |
2 changed files with 7 additions and 0 deletions
|
@ -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 |
|
||||
|
|
6
spcd.sh
6
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
|
||||
|
|
Loading…
Reference in a new issue