parent
62cd874c26
commit
d24eb62df1
1 changed files with 17 additions and 10 deletions
27
cd.sh
27
cd.sh
|
@ -56,11 +56,26 @@ local text=''
|
||||||
|| exit
|
|| 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 {
|
function cd_set_packages_configuration {
|
||||||
cd_step "configure package manager"
|
cd_step "configure package manager"
|
||||||
case "${CD_OS_NAME}" in
|
case "${CD_OS_NAME}" in
|
||||||
'debian')
|
'debian')
|
||||||
cd_write '/etc/apt/apt.conf.d/apt.conf' "\
|
cd_write '/etc/apt/apt.conf.d/apt.conf' "\
|
||||||
Acquire::Check-Valid-Until True;
|
Acquire::Check-Valid-Until True;
|
||||||
APT::Get::Show-Versions True;
|
APT::Get::Show-Versions True;
|
||||||
APT::Install-Recommends False;
|
APT::Install-Recommends False;
|
||||||
|
@ -74,17 +89,9 @@ Dir::Etc::SourceParts \"\";
|
||||||
|
|
||||||
function cd_main {
|
function cd_main {
|
||||||
cd_set_dns_resolving
|
cd_set_dns_resolving
|
||||||
|
cd_set_packages_repositories
|
||||||
cd_set_packages_configuration
|
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"
|
cd_step "disable package verification"
|
||||||
echo -n "\
|
echo -n "\
|
||||||
Acquire::https::Verify-Peer False;
|
Acquire::https::Verify-Peer False;
|
||||||
|
|
Loading…
Reference in a new issue