update
This commit is contained in:
parent
84ccc6f215
commit
a9e885bca8
1 changed files with 3 additions and 4 deletions
7
cd.sh
7
cd.sh
|
@ -67,6 +67,7 @@ cd_set_environment_variables () {
|
||||||
CD_CA_ROOT="/etc/pki/ca-trust/source/anchors"
|
CD_CA_ROOT="/etc/pki/ca-trust/source/anchors"
|
||||||
CD_CMD_CA="update-ca-trust"
|
CD_CMD_CA="update-ca-trust"
|
||||||
CD_CMD_CLEAN="dnf clean all"
|
CD_CMD_CLEAN="dnf clean all"
|
||||||
|
CD_CMD_UPDATE="dnf makecache"
|
||||||
CD_CMD_UPGRADE="dnf upgrade --assumeyes"
|
CD_CMD_UPGRADE="dnf upgrade --assumeyes"
|
||||||
CD_FILE_HTTPS="/etc/dnf/dnf.conf.d/https.conf"
|
CD_FILE_HTTPS="/etc/dnf/dnf.conf.d/https.conf"
|
||||||
CD_PYTHON_COMMAND="python3.11"
|
CD_PYTHON_COMMAND="python3.11"
|
||||||
|
@ -83,6 +84,7 @@ cd_set_environment_variables () {
|
||||||
CD_CA_ROOT="/usr/local/share/ca-certificates"
|
CD_CA_ROOT="/usr/local/share/ca-certificates"
|
||||||
CD_CMD_CA="update-ca-certificates"
|
CD_CMD_CA="update-ca-certificates"
|
||||||
CD_CMD_CLEAN="apt-get clean"
|
CD_CMD_CLEAN="apt-get clean"
|
||||||
|
CD_CMD_UPDATE="apt-get update"
|
||||||
CD_CMD_UPGRADE="apt-get upgrade --assume-yes"
|
CD_CMD_UPGRADE="apt-get upgrade --assume-yes"
|
||||||
CD_FILE_HTTPS="/etc/apt/apt.conf.d/https"
|
CD_FILE_HTTPS="/etc/apt/apt.conf.d/https"
|
||||||
CD_PYTHON_COMMAND="python3"
|
CD_PYTHON_COMMAND="python3"
|
||||||
|
@ -205,10 +207,7 @@ Acquire::https::Verify-Peer False;
|
||||||
|
|
||||||
cd_update_packages_catalog () {
|
cd_update_packages_catalog () {
|
||||||
cd_step "Update packages catalog"
|
cd_step "Update packages catalog"
|
||||||
case "${CD_OS_ID}" in
|
${CD_CMD_UPDATE} || exit
|
||||||
"${CD_OS_ALMA}") dnf makecache || exit ;;
|
|
||||||
"${CD_OS_DEBIAN}") apt-get update || exit ;;
|
|
||||||
esac
|
|
||||||
}
|
}
|
||||||
|
|
||||||
cd_install_packages_tools () {
|
cd_install_packages_tools () {
|
||||||
|
|
Loading…
Reference in a new issue