From f27e5adbd38d6498e39d2f234882d7188459fb84 Mon Sep 17 00:00:00 2001 From: Marc Beninca Date: Mon, 29 Apr 2024 22:41:28 +0200 Subject: [PATCH] repos --- cd.sh | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) 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 }