This commit is contained in:
Marc Beninca 2024-04-29 22:41:28 +02:00
parent 44b4b5b357
commit f27e5adbd3
Signed by: marc.beninca
GPG key ID: 9C7613450C80C24F

12
cd.sh
View file

@ -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
}