repositories
Some checks failed
/ job (push) Failing after 4s

This commit is contained in:
Marc Beninca 2024-04-26 16:13:35 +02:00
parent 62cd874c26
commit d24eb62df1
Signed by: marc.beninca
GPG key ID: 9C7613450C80C24F

25
cd.sh
View file

@ -56,6 +56,21 @@ local text=''
|| exit
}
function cd_set_packages_repositories {
cd_step "configure package repositories"
case "${CD_OS_NAME}" in
'debian')
cd_write '/etc/apt/sources.list' "\
deb https://deb.debian.org/debian bookworm main
deb https://deb.debian.org/debian bookworm-backports main
deb https://deb.debian.org/debian bookworm-updates main
deb https://deb.debian.org/debian-security bookworm-security main
"
;;
*) exit 1 ;;
esac
}
function cd_set_packages_configuration {
cd_step "configure package manager"
case "${CD_OS_NAME}" in
@ -74,17 +89,9 @@ Dir::Etc::SourceParts \"\";
function cd_main {
cd_set_dns_resolving
cd_set_packages_repositories
cd_set_packages_configuration
cd_step "configure package repositories"
echo -n "\
deb https://deb.debian.org/debian bookworm main
deb https://deb.debian.org/debian bookworm-backports main
deb https://deb.debian.org/debian bookworm-updates main
deb https://deb.debian.org/debian-security bookworm-security main
" > '/etc/apt/sources.list' \
|| exit
cd_step "disable package verification"
echo -n "\
Acquire::https::Verify-Peer False;