parent
bb291ccea3
commit
af80453e2e
1 changed files with 2 additions and 2 deletions
4
cd.sh
4
cd.sh
|
@ -74,6 +74,7 @@ function cd_set_packages_configuration {
|
|||
cd_step "${FUNCNAME}"
|
||||
case "${CD_OS_NAME}" in
|
||||
'debian')
|
||||
export DEBIAN_FRONTEND='noninteractive'
|
||||
cd_write '/etc/apt/apt.conf.d/apt.conf' "\
|
||||
Acquire::Check-Valid-Until True;
|
||||
APT::Get::Show-Versions True;
|
||||
|
@ -109,8 +110,7 @@ function cd_update_packages_catalog {
|
|||
function cd_install_package {
|
||||
if [ "${1}" ] ; then
|
||||
case "${CD_OS_NAME}" in
|
||||
'debian') DEBIAN_FRONTEND='noninteractive' \
|
||||
apt-get install --yes "${1}" || exit ;;
|
||||
'debian') apt-get install --yes "${1}" || exit ;;
|
||||
*) exit 1 ;;
|
||||
esac
|
||||
fi
|
||||
|
|
Loading…
Reference in a new issue