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}"
|
cd_step "${FUNCNAME}"
|
||||||
case "${CD_OS_NAME}" in
|
case "${CD_OS_NAME}" in
|
||||||
'debian')
|
'debian')
|
||||||
|
export DEBIAN_FRONTEND='noninteractive'
|
||||||
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;
|
||||||
|
@ -109,8 +110,7 @@ function cd_update_packages_catalog {
|
||||||
function cd_install_package {
|
function cd_install_package {
|
||||||
if [ "${1}" ] ; then
|
if [ "${1}" ] ; then
|
||||||
case "${CD_OS_NAME}" in
|
case "${CD_OS_NAME}" in
|
||||||
'debian') DEBIAN_FRONTEND='noninteractive' \
|
'debian') apt-get install --yes "${1}" || exit ;;
|
||||||
apt-get install --yes "${1}" || exit ;;
|
|
||||||
*) exit 1 ;;
|
*) exit 1 ;;
|
||||||
esac
|
esac
|
||||||
fi
|
fi
|
||||||
|
|
Loading…
Reference in a new issue