This commit is contained in:
Marc Beninca 2024-04-29 16:41:12 +02:00
parent 5f661ba6db
commit 4d9a7671f9
Signed by: marc.beninca
GPG key ID: 9C7613450C80C24F

6
cd.sh
View file

@ -213,8 +213,8 @@ cd_set_https_verification_on () {
cd_upgrade_packages () { cd_upgrade_packages () {
cd_step "Upgrade packages" cd_step "Upgrade packages"
case "${CD_OS_NAME}" in case "${CD_OS_NAME}" in
"debian") apt-get upgrade --yes || exit ;; "debian") apt-get upgrade --assume-yes || exit ;;
"alma") echo "TODO" ;; "alma") dnf upgrade --assumeyes || exit ;;
*) cd_error_os "cd_upgrade_packages" ;; *) cd_error_os "cd_upgrade_packages" ;;
esac esac
} }
@ -309,7 +309,7 @@ cd_error_os () {
cd_install_package () { cd_install_package () {
if [ "${1}" ] ; then if [ "${1}" ] ; then
case "${CD_OS_NAME}" in case "${CD_OS_NAME}" in
"debian") apt-get install --yes "${1}" || exit ;; "debian") apt-get install --assume-yes "${1}" || exit ;;
*) exit 1 ;; *) exit 1 ;;
esac esac
fi fi