From 25e08725a82266d94823e5cc62af06f586217ea1 Mon Sep 17 00:00:00 2001 From: Marc Beninca Date: Sat, 31 Aug 2024 10:54:54 +0200 Subject: [PATCH] packages --- spcd/bootstrap.sh | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/spcd/bootstrap.sh b/spcd/bootstrap.sh index 2347c58..94981fc 100644 --- a/spcd/bootstrap.sh +++ b/spcd/bootstrap.sh @@ -1284,6 +1284,7 @@ spcd_step__python_modules() { spcd_step__install_packages() { spcd_step_in "OS packages" + local file # epel spcd_step "EPEL" case "${SPCD_OS_ID}" in @@ -1304,15 +1305,15 @@ spcd_step__install_packages() { ;; *) ;; esac - for spcd_spr__file in "${@}"; do - spcd_os_sed "/etc/yum.repos.d/epel${spcd_spr__file}.repo" \ + for file in "${@}"; do + spcd_os_sed "/etc/yum.repos.d/epel${file}.repo" \ "|^metalink|#metalink|" \ "|https://download.example/pub/epel|${SPCD_URL_EPEL}|" \ "|^#baseurl|baseurl|" done - spcd_spr__file="/etc/yum.repos.d/epel-cisco-openh264.repo" + file="/etc/yum.repos.d/epel-cisco-openh264.repo" if [ -f "${spcd_spr__file}" ]; then - spcd_os_sed "${spcd_spr__file}" \ + spcd_os_sed "${file}" \ "|^enabled=1|#enabled=0|" fi ;;