repos
This commit is contained in:
parent
05636f94f3
commit
a599e31cb1
1 changed files with 9 additions and 8 deletions
|
@ -874,6 +874,7 @@ nameserver ${value}
|
|||
|
||||
spcd_step__packages_set_repositories() {
|
||||
spcd_step "Set repositories"
|
||||
local file
|
||||
case "${SPCD_OS_ID}" in
|
||||
"${SPCD_OS_ALMA}")
|
||||
case "${SPCD_OS_VERSION}" in
|
||||
|
@ -905,8 +906,8 @@ spcd_step__packages_set_repositories() {
|
|||
;;
|
||||
*) ;;
|
||||
esac
|
||||
for spcd_spr__file in "${@}"; do
|
||||
spcd_os_sed "/etc/yum.repos.d/almalinux${spcd_spr__file}.repo" \
|
||||
for file in "${@}"; do
|
||||
spcd_os_sed "/etc/yum.repos.d/almalinux${file}.repo" \
|
||||
"|^mirrorlist|#mirrorlist|" \
|
||||
"|https://repo.almalinux.org|${SPCD_URL_ALMA}|" \
|
||||
"|^# baseurl|baseurl|"
|
||||
|
@ -936,8 +937,8 @@ deb ${SPCD_URL_DEBIAN}-security ${SPCD_OS_VERSION}-security main
|
|||
"-updates-testing" \
|
||||
"-updates" \
|
||||
""
|
||||
for spcd_spr__file in "${@}"; do
|
||||
spcd_os_sed "/etc/yum.repos.d/fedora${spcd_spr__file}.repo" \
|
||||
for file in "${@}"; do
|
||||
spcd_os_sed "/etc/yum.repos.d/fedora${file}.repo" \
|
||||
"|^metalink|#metalink|" "\
|
||||
|http://download.example/pub/fedora/linux|${SPCD_URL_FEDORA}|" \
|
||||
"|^#baseurl|baseurl|"
|
||||
|
@ -960,8 +961,8 @@ deb ${SPCD_URL_DEBIAN}-security ${SPCD_OS_VERSION}-security main
|
|||
"source" \
|
||||
"update-non-oss" \
|
||||
"update"
|
||||
for spcd_spr__file in "${@}"; do
|
||||
spcd_os_sed "/etc/zypp/repos.d/repo-${spcd_spr__file}.repo" \
|
||||
for file in "${@}"; do
|
||||
spcd_os_sed "/etc/zypp/repos.d/repo-${file}.repo" \
|
||||
"|http://download.opensuse.org|${SPCD_URL_OPENSUSE}|"
|
||||
done
|
||||
spcd_os_sed "/etc/zypp/repos.d/repo-openh264.repo" \
|
||||
|
@ -994,8 +995,8 @@ deb ${SPCD_URL_DEBIAN}-security ${SPCD_OS_VERSION}-security main
|
|||
;;
|
||||
*) ;;
|
||||
esac
|
||||
for spcd_spr__file in "${@}"; do
|
||||
spcd_os_sed "/etc/yum.repos.d/${spcd_spr__file}.repo" \
|
||||
for file in "${@}"; do
|
||||
spcd_os_sed "/etc/yum.repos.d/${file}.repo" \
|
||||
"|^mirrorlist|#mirrorlist|" \
|
||||
"|http://dl.rockylinux.org|${SPCD_URL_ROCKY}|" \
|
||||
"|^#baseurl|baseurl|"
|
||||
|
|
Loading…
Reference in a new issue