export
Some checks failed
/ job (push) Failing after 7s

This commit is contained in:
Marc Beninca 2024-04-26 17:15:00 +02:00
parent bb291ccea3
commit af80453e2e
Signed by: marc.beninca
GPG key ID: 9C7613450C80C24F

4
cd.sh
View file

@ -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