From a599e31cb169f50535b6025b38579e814e850620 Mon Sep 17 00:00:00 2001 From: Marc Beninca Date: Sat, 31 Aug 2024 09:38:12 +0200 Subject: [PATCH] repos --- spcd/bootstrap.sh | 17 +++++++++-------- 1 file changed, 9 insertions(+), 8 deletions(-) diff --git a/spcd/bootstrap.sh b/spcd/bootstrap.sh index 189dc15..2ec0029 100644 --- a/spcd/bootstrap.sh +++ b/spcd/bootstrap.sh @@ -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|"