parent
62cd874c26
commit
d24eb62df1
1 changed files with 17 additions and 10 deletions
25
cd.sh
25
cd.sh
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue