This commit is contained in:
Marc Beninca 2024-05-03 21:18:20 +02:00
parent 6688313b48
commit faf17ad62f
Signed by: marc.beninca
GPG key ID: 9C7613450C80C24F

11
cd.sh
View file

@ -66,6 +66,7 @@ cd_set_environment_variables () {
esac esac
CD_CA_ROOT="/etc/pki/ca-trust/source/anchors" CD_CA_ROOT="/etc/pki/ca-trust/source/anchors"
CD_CMD_CLEAN="dnf clean all" CD_CMD_CLEAN="dnf clean all"
CD_CMD_UPGRADE="dnf upgrade --assumeyes"
CD_PYTHON_COMMAND="python3.11" CD_PYTHON_COMMAND="python3.11"
CD_PYTHON_PACKAGE="python3.11" CD_PYTHON_PACKAGE="python3.11"
CD_PYTHON_PACKAGES="/usr/lib64/python3.11/site-packages" CD_PYTHON_PACKAGES="/usr/lib64/python3.11/site-packages"
@ -79,6 +80,7 @@ cd_set_environment_variables () {
esac esac
CD_CA_ROOT="/usr/local/share/ca-certificates" CD_CA_ROOT="/usr/local/share/ca-certificates"
CD_CMD_CLEAN="apt-get clean" CD_CMD_CLEAN="apt-get clean"
CD_CMD_UPGRADE="apt-get upgrade --assume-yes"
CD_PYTHON_COMMAND="python3" CD_PYTHON_COMMAND="python3"
CD_PYTHON_PACKAGE="python3" CD_PYTHON_PACKAGE="python3"
CD_PYTHON_PACKAGES="/usr/lib/python3/dist-packages" CD_PYTHON_PACKAGES="/usr/lib/python3/dist-packages"
@ -250,16 +252,13 @@ cd_set_https_verification_on () {
fi fi
} }
# agnostic steps
cd_upgrade_packages () { cd_upgrade_packages () {
cd_step "Upgrade packages" cd_step "Upgrade packages"
case "${CD_OS_ID}" in ${CD_CMD_UPGRADE} || exit
"${CD_OS_ALMA}") dnf upgrade --assumeyes || exit ;;
"${CD_OS_DEBIAN}") apt-get upgrade --assume-yes || exit ;;
esac
} }
# agnostic steps
cd_install_git () { cd_install_git () {
cd_step "Install Git" cd_step "Install Git"
cd_install_package "${CD_GIT_PACKAGE}" cd_install_package "${CD_GIT_PACKAGE}"