repos
This commit is contained in:
parent
44b4b5b357
commit
f27e5adbd3
1 changed files with 11 additions and 1 deletions
12
cd.sh
12
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
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue