epel/url
This commit is contained in:
parent
55ad635b43
commit
d2c710bee5
1 changed files with 6 additions and 0 deletions
6
spcd.sh
6
spcd.sh
|
@ -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" \
|
||||||
|
"|^mirrorlist|# mirrorlist|" \
|
||||||
|
"|https://download.example|${spcd_ip__epel}|" \
|
||||||
|
"|^#baseurl|baseurl|"
|
||||||
;;
|
;;
|
||||||
*) ;;
|
*) ;;
|
||||||
esac
|
esac
|
||||||
|
|
Loading…
Reference in a new issue