repos/fixes
This commit is contained in:
parent
01688a562b
commit
6f57231f9c
1 changed files with 16 additions and 15 deletions
|
@ -788,7 +788,6 @@ spcd_step__packages_set_repositories() {
|
||||||
;;
|
;;
|
||||||
"8")
|
"8")
|
||||||
set -- \
|
set -- \
|
||||||
"" \
|
|
||||||
"-ha" \
|
"-ha" \
|
||||||
"-nfv" \
|
"-nfv" \
|
||||||
"-plus" \
|
"-plus" \
|
||||||
|
@ -796,13 +795,14 @@ spcd_step__packages_set_repositories() {
|
||||||
"-resilientstorage" \
|
"-resilientstorage" \
|
||||||
"-rt" \
|
"-rt" \
|
||||||
"-sap" \
|
"-sap" \
|
||||||
"-saphana"
|
"-saphana" \
|
||||||
|
""
|
||||||
;;
|
;;
|
||||||
*) ;;
|
*) ;;
|
||||||
esac
|
esac
|
||||||
for spcd_spr__file in "${@}"; do
|
for spcd_spr__file in "${@}"; do
|
||||||
spcd_os_sed "/etc/yum.repos.d/almalinux${spcd_spr__file}.repo" \
|
spcd_os_sed "/etc/yum.repos.d/almalinux${spcd_spr__file}.repo" \
|
||||||
"|^mirrorlist|# mirrorlist|" \
|
"|^mirrorlist|#mirrorlist|" \
|
||||||
"|https://repo.almalinux.org|${SPCD_URL_ALMA}|" \
|
"|https://repo.almalinux.org|${SPCD_URL_ALMA}|" \
|
||||||
"|^# baseurl|baseurl|"
|
"|^# baseurl|baseurl|"
|
||||||
done
|
done
|
||||||
|
@ -827,17 +827,18 @@ deb ${SPCD_URL_DEBIAN}-security ${SPCD_OS_VERSION}-security main
|
||||||
"
|
"
|
||||||
;;
|
;;
|
||||||
"${SPCD_OS_FEDORA}")
|
"${SPCD_OS_FEDORA}")
|
||||||
for spcd_spr__file in \
|
set -- \
|
||||||
"fedora" \
|
"-updates-testing" \
|
||||||
"fedora-updates" \
|
"-updates" \
|
||||||
"fedora-updates-testing"; do
|
""
|
||||||
spcd_os_sed "/etc/yum.repos.d/${spcd_spr__file}.repo" \
|
for spcd_spr__file in "${@}"; do
|
||||||
"|^metalink|# metalink|" "\
|
spcd_os_sed "/etc/yum.repos.d/fedora${spcd_spr__file}.repo" \
|
||||||
|
"|^metalink|#metalink|" "\
|
||||||
|http://download.example/pub/fedora/linux|${SPCD_URL_FEDORA}|" \
|
|http://download.example/pub/fedora/linux|${SPCD_URL_FEDORA}|" \
|
||||||
"|^#baseurl|baseurl|"
|
"|^#baseurl|baseurl|"
|
||||||
done
|
done
|
||||||
spcd_os_sed "/etc/yum.repos.d/fedora-cisco-openh264.repo" \
|
spcd_os_sed "/etc/yum.repos.d/fedora-cisco-openh264.repo" \
|
||||||
"|^enabled=1|# enabled=0|"
|
"|^enabled=1|#enabled=0|"
|
||||||
;;
|
;;
|
||||||
"${SPCD_OS_OPENSUSE}")
|
"${SPCD_OS_OPENSUSE}")
|
||||||
set -- \
|
set -- \
|
||||||
|
@ -859,16 +860,16 @@ deb ${SPCD_URL_DEBIAN}-security ${SPCD_OS_VERSION}-security main
|
||||||
"|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" \
|
||||||
"|^enabled=1|# enabled=0|"
|
"|^enabled=1|#enabled=0|"
|
||||||
;;
|
;;
|
||||||
"${SPCD_OS_ROCKY}")
|
"${SPCD_OS_ROCKY}")
|
||||||
case "${SPCD_OS_VERSION}" in
|
case "${SPCD_OS_VERSION}" in
|
||||||
"9")
|
"9")
|
||||||
set -- \
|
set -- \
|
||||||
"rocky" \
|
|
||||||
"rocky-addons" \
|
"rocky-addons" \
|
||||||
"rocky-devel" \
|
"rocky-devel" \
|
||||||
"rocky-extras"
|
"rocky-extras" \
|
||||||
|
"rocky"
|
||||||
;;
|
;;
|
||||||
"8")
|
"8")
|
||||||
# not Rocky-Media
|
# not Rocky-Media
|
||||||
|
@ -890,7 +891,7 @@ deb ${SPCD_URL_DEBIAN}-security ${SPCD_OS_VERSION}-security main
|
||||||
esac
|
esac
|
||||||
for spcd_spr__file in "${@}"; do
|
for spcd_spr__file in "${@}"; do
|
||||||
spcd_os_sed "/etc/yum.repos.d/${spcd_spr__file}.repo" \
|
spcd_os_sed "/etc/yum.repos.d/${spcd_spr__file}.repo" \
|
||||||
"|^mirrorlist|# mirrorlist|" \
|
"|^mirrorlist|#mirrorlist|" \
|
||||||
"|http://dl.rockylinux.org|${SPCD_URL_ROCKY}|" \
|
"|http://dl.rockylinux.org|${SPCD_URL_ROCKY}|" \
|
||||||
"|^#baseurl|baseurl|"
|
"|^#baseurl|baseurl|"
|
||||||
done
|
done
|
||||||
|
@ -1150,7 +1151,7 @@ spcd_step__install_packages() {
|
||||||
[ -n "${SPCD_URL_EPEL}" ] && spcd_ip__epel="${SPCD_URL_EPEL}" ||
|
[ -n "${SPCD_URL_EPEL}" ] && spcd_ip__epel="${SPCD_URL_EPEL}" ||
|
||||||
spcd_ip__epel="https://dl.fedoraproject.org"
|
spcd_ip__epel="https://dl.fedoraproject.org"
|
||||||
spcd_os_sed "/etc/yum.repos.d/epel.repo" \
|
spcd_os_sed "/etc/yum.repos.d/epel.repo" \
|
||||||
"|^metalink|# metalink|" \
|
"|^metalink|#metalink|" \
|
||||||
"|https://download.example|${spcd_ip__epel}|" \
|
"|https://download.example|${spcd_ip__epel}|" \
|
||||||
"|^#baseurl|baseurl|"
|
"|^#baseurl|baseurl|"
|
||||||
;;
|
;;
|
||||||
|
|
Loading…
Reference in a new issue