diff --git a/cd.sh b/cd.sh index 4717b24..7777146 100644 --- a/cd.sh +++ b/cd.sh @@ -112,6 +112,8 @@ local text="" } cd_set_packages_repositories () { +local expression +local file cd_step "Set packages repositories" case "${CD_OS_NAME}" in "debian") @@ -122,7 +124,15 @@ deb https://deb.debian.org/debian bookworm-updates main deb https://deb.debian.org/debian-security bookworm-security main " ;; - "alma") echo "TODO" ;; + "alma") + file="/etc/yum.repos.d/almalinux.repo" + for expression in \ + "|^m|# m|" \ + "|^# b|b|" \ + ; do + sed --in-place "s${expression}g" "${file}" || exit + done + ;; *) cd_error_os "cd_set_packages_repositories" ;; esac }