repos/rocky
This commit is contained in:
parent
54ba6c2bdb
commit
eab857625b
1 changed files with 29 additions and 7 deletions
|
@ -34,7 +34,7 @@
|
|||
[ -n "${SPCD_URL_PYTHON}" ] ||
|
||||
SPCD_URL_PYTHON="https://pypi.org/simple"
|
||||
[ -n "${SPCD_URL_ROCKY}" ] ||
|
||||
SPCD_URL_ROCKY="https://dl.rockylinux.org/\$contentdir"
|
||||
SPCD_URL_ROCKY="https://dl.rockylinux.org"
|
||||
[ -n "${SPCD_URL_UBUNTU}" ] ||
|
||||
SPCD_URL_UBUNTU="https://ubuntu.mirrors.ovh.net/ubuntu"
|
||||
|
||||
|
@ -910,14 +910,36 @@ deb ${SPCD_URL_DEBIAN}-security ${SPCD_OS_VERSION}-security main
|
|||
;;
|
||||
"${SPCD_OS_ROCKY}")
|
||||
case "${SPCD_OS_VERSION}" in
|
||||
"8") spcd_spr__file="/etc/yum.repos.d/Rocky-BaseOS.repo" ;;
|
||||
"9") spcd_spr__file="/etc/yum.repos.d/rocky.repo" ;;
|
||||
"9")
|
||||
set -- \
|
||||
"rocky" \
|
||||
"rocky-addons" \
|
||||
"rocky-devel" \
|
||||
"rocky-extras"
|
||||
;;
|
||||
"8")
|
||||
set -- \
|
||||
"Rocky-AppStream" \
|
||||
"Rocky-BaseOS" \
|
||||
"Rocky-Debuginfo" \
|
||||
"Rocky-Devel" \
|
||||
"Rocky-Extras" \
|
||||
"Rocky-HighAvailability" \
|
||||
"Rocky-NFV" \
|
||||
"Rocky-Plus" \
|
||||
"Rocky-PowerTools" \
|
||||
"Rocky-RT" \
|
||||
"Rocky-ResilientStorage" \
|
||||
"Rocky-Sources"
|
||||
;;
|
||||
*) ;;
|
||||
esac
|
||||
spcd_os_sed "${spcd_spr__file}" \
|
||||
for spcd_spr__file in "${@}"; do
|
||||
spcd_os_sed "/etc/yum.repos.d/${spcd_spr__file}.repo" \
|
||||
"|^mirrorlist|# mirrorlist|" \
|
||||
"|http://dl.rockylinux.org/\$contentdir|${SPCD_URL_ROCKY}|" \
|
||||
"|http://dl.rockylinux.org|${SPCD_URL_ROCKY}|" \
|
||||
"|^#baseurl|baseurl|"
|
||||
done
|
||||
;;
|
||||
"${SPCD_OS_UBUNTU}")
|
||||
spcd_os_write "/etc/apt/sources.list" "\
|
||||
|
|
Loading…
Reference in a new issue