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