clean
This commit is contained in:
parent
657e4d28a2
commit
6688313b48
1 changed files with 5 additions and 6 deletions
11
cd.sh
11
cd.sh
|
@ -65,6 +65,7 @@ cd_set_environment_variables () {
|
||||||
*) cd_error_os "CD_OS_VERSION" ;;
|
*) cd_error_os "CD_OS_VERSION" ;;
|
||||||
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_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"
|
||||||
|
@ -77,6 +78,7 @@ cd_set_environment_variables () {
|
||||||
*) cd_error_os "CD_OS_VERSION" ;;
|
*) cd_error_os "CD_OS_VERSION" ;;
|
||||||
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_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"
|
||||||
|
@ -256,6 +258,8 @@ cd_upgrade_packages () {
|
||||||
esac
|
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}"
|
||||||
|
@ -268,14 +272,9 @@ cd_install_python () {
|
||||||
|
|
||||||
cd_clean_packages_cache () {
|
cd_clean_packages_cache () {
|
||||||
cd_step "Clean packages cache"
|
cd_step "Clean packages cache"
|
||||||
case "${CD_OS_ID}" in
|
${CD_CMD_CLEAN} || exit
|
||||||
"${CD_OS_ALMA}") dnf clean all || exit ;;
|
|
||||||
"${CD_OS_DEBIAN}") apt-get clean || exit ;;
|
|
||||||
esac
|
|
||||||
}
|
}
|
||||||
|
|
||||||
# agnostic steps
|
|
||||||
|
|
||||||
cd_install_python_modules () {
|
cd_install_python_modules () {
|
||||||
local path
|
local path
|
||||||
local repository
|
local repository
|
||||||
|
|
Loading…
Reference in a new issue