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__packages_set_repositories() {
|
||||||
spcd_step "Set repositories"
|
spcd_step "Set repositories"
|
||||||
|
local file
|
||||||
case "${SPCD_OS_ID}" in
|
case "${SPCD_OS_ID}" in
|
||||||
"${SPCD_OS_ALMA}")
|
"${SPCD_OS_ALMA}")
|
||||||
case "${SPCD_OS_VERSION}" in
|
case "${SPCD_OS_VERSION}" in
|
||||||
|
@ -905,8 +906,8 @@ spcd_step__packages_set_repositories() {
|
||||||
;;
|
;;
|
||||||
*) ;;
|
*) ;;
|
||||||
esac
|
esac
|
||||||
for spcd_spr__file in "${@}"; do
|
for file in "${@}"; do
|
||||||
spcd_os_sed "/etc/yum.repos.d/almalinux${spcd_spr__file}.repo" \
|
spcd_os_sed "/etc/yum.repos.d/almalinux${file}.repo" \
|
||||||
"|^mirrorlist|#mirrorlist|" \
|
"|^mirrorlist|#mirrorlist|" \
|
||||||
"|https://repo.almalinux.org|${SPCD_URL_ALMA}|" \
|
"|https://repo.almalinux.org|${SPCD_URL_ALMA}|" \
|
||||||
"|^# baseurl|baseurl|"
|
"|^# baseurl|baseurl|"
|
||||||
|
@ -936,8 +937,8 @@ deb ${SPCD_URL_DEBIAN}-security ${SPCD_OS_VERSION}-security main
|
||||||
"-updates-testing" \
|
"-updates-testing" \
|
||||||
"-updates" \
|
"-updates" \
|
||||||
""
|
""
|
||||||
for spcd_spr__file in "${@}"; do
|
for file in "${@}"; do
|
||||||
spcd_os_sed "/etc/yum.repos.d/fedora${spcd_spr__file}.repo" \
|
spcd_os_sed "/etc/yum.repos.d/fedora${file}.repo" \
|
||||||
"|^metalink|#metalink|" "\
|
"|^metalink|#metalink|" "\
|
||||||
|http://download.example/pub/fedora/linux|${SPCD_URL_FEDORA}|" \
|
|http://download.example/pub/fedora/linux|${SPCD_URL_FEDORA}|" \
|
||||||
"|^#baseurl|baseurl|"
|
"|^#baseurl|baseurl|"
|
||||||
|
@ -960,8 +961,8 @@ deb ${SPCD_URL_DEBIAN}-security ${SPCD_OS_VERSION}-security main
|
||||||
"source" \
|
"source" \
|
||||||
"update-non-oss" \
|
"update-non-oss" \
|
||||||
"update"
|
"update"
|
||||||
for spcd_spr__file in "${@}"; do
|
for file in "${@}"; do
|
||||||
spcd_os_sed "/etc/zypp/repos.d/repo-${spcd_spr__file}.repo" \
|
spcd_os_sed "/etc/zypp/repos.d/repo-${file}.repo" \
|
||||||
"|http://download.opensuse.org|${SPCD_URL_OPENSUSE}|"
|
"|http://download.opensuse.org|${SPCD_URL_OPENSUSE}|"
|
||||||
done
|
done
|
||||||
spcd_os_sed "/etc/zypp/repos.d/repo-openh264.repo" \
|
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
|
esac
|
||||||
for spcd_spr__file in "${@}"; do
|
for file in "${@}"; do
|
||||||
spcd_os_sed "/etc/yum.repos.d/${spcd_spr__file}.repo" \
|
spcd_os_sed "/etc/yum.repos.d/${file}.repo" \
|
||||||
"|^mirrorlist|#mirrorlist|" \
|
"|^mirrorlist|#mirrorlist|" \
|
||||||
"|http://dl.rockylinux.org|${SPCD_URL_ROCKY}|" \
|
"|http://dl.rockylinux.org|${SPCD_URL_ROCKY}|" \
|
||||||
"|^#baseurl|baseurl|"
|
"|^#baseurl|baseurl|"
|
||||||
|
|
Loading…
Reference in a new issue