upgrade
Some checks failed
/ job (push) Failing after 3s

This commit is contained in:
Marc Beninca 2024-04-26 16:39:24 +02:00
parent bfe94ce1cb
commit 0f68d49e46
Signed by: marc.beninca
GPG key ID: 9C7613450C80C24F

17
cd.sh
View file

@ -122,6 +122,14 @@ function cd_set_https_verification_on {
esac esac
} }
function cd_upgrade_packages {
cd_step "${FUNCNAME}"
case "${CD_OS_NAME}" in
'debian') apt-get upgrade --yes || exit ;;
*) exit 1 ;;
esac
}
function cd_main { function cd_main {
cd_set_dns_resolving cd_set_dns_resolving
cd_set_packages_repositories cd_set_packages_repositories
@ -130,13 +138,8 @@ function cd_main {
cd_update_packages_catalog cd_update_packages_catalog
cd_install_ca cd_install_ca
cd_set_https_verification_on cd_set_https_verification_on
cd_update_packages_catalog
cd_step "update package catalog" cd_upgrade_packages
apt-get update \
|| exit
cd_step "upgrade packages"
apt-get upgrade --yes \
|| exit
cd_step "install Git" cd_step "install Git"
apt-get install --yes 'git' \ apt-get install --yes 'git' \