pkgconf
This commit is contained in:
parent
62036d62c2
commit
30eb5cc297
1 changed files with 16 additions and 8 deletions
24
cd.sh
24
cd.sh
|
@ -44,7 +44,7 @@ local text="${2}"
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
function cd_set_dns {
|
function cd_set_dns_resolving {
|
||||||
local server
|
local server
|
||||||
local text=''
|
local text=''
|
||||||
cd_step "set name servers"
|
cd_step "set name servers"
|
||||||
|
@ -56,18 +56,26 @@ local text=''
|
||||||
|| exit
|
|| exit
|
||||||
}
|
}
|
||||||
|
|
||||||
function cd_main {
|
function cd_set_packages_configuration {
|
||||||
cd_set_dns
|
cd_step "configure package manager"
|
||||||
|
case "${CD_OS_NAME}" in
|
||||||
cd_step "configure package manager"
|
'debian')
|
||||||
echo -n "\
|
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;
|
||||||
APT::Install-Suggests False;
|
APT::Install-Suggests False;
|
||||||
Dir::Etc::SourceParts '';
|
Dir::Etc::SourceParts '';
|
||||||
" > '/etc/apt/apt.conf.d/apt.conf' \
|
"
|
||||||
|| exit
|
;;
|
||||||
|
*) exit ;;
|
||||||
|
esac
|
||||||
|
}
|
||||||
|
|
||||||
|
function cd_main {
|
||||||
|
cd_set_dns_resolving
|
||||||
|
cd_set_packages_configuration
|
||||||
|
|
||||||
cd_step "configure package repositories"
|
cd_step "configure package repositories"
|
||||||
echo -n "\
|
echo -n "\
|
||||||
deb https://deb.debian.org/debian bookworm main
|
deb https://deb.debian.org/debian bookworm main
|
||||||
|
|
Loading…
Reference in a new issue