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

11
cd.sh
View file

@ -65,6 +65,7 @@ cd_set_environment_variables () {
*) cd_error_os "CD_OS_VERSION" ;;
esac
CD_CA_ROOT="/etc/pki/ca-trust/source/anchors"
CD_CMD_CLEAN="dnf clean all"
CD_PYTHON_COMMAND="python3.11"
CD_PYTHON_PACKAGE="python3.11"
CD_PYTHON_PACKAGES="/usr/lib64/python3.11/site-packages"
@ -77,6 +78,7 @@ cd_set_environment_variables () {
*) cd_error_os "CD_OS_VERSION" ;;
esac
CD_CA_ROOT="/usr/local/share/ca-certificates"
CD_CMD_CLEAN="apt-get clean"
CD_PYTHON_COMMAND="python3"
CD_PYTHON_PACKAGE="python3"
CD_PYTHON_PACKAGES="/usr/lib/python3/dist-packages"
@ -256,6 +258,8 @@ cd_upgrade_packages () {
esac
}
# agnostic steps
cd_install_git () {
cd_step "Install Git"
cd_install_package "${CD_GIT_PACKAGE}"
@ -268,14 +272,9 @@ cd_install_python () {
cd_clean_packages_cache () {
cd_step "Clean packages cache"
case "${CD_OS_ID}" in
"${CD_OS_ALMA}") dnf clean all || exit ;;
"${CD_OS_DEBIAN}") apt-get clean || exit ;;
esac
${CD_CMD_CLEAN} || exit
}
# agnostic steps
cd_install_python_modules () {
local path
local repository