From a9e885bca896e06857eb547a78678228c0b184c4 Mon Sep 17 00:00:00 2001 From: Marc Beninca Date: Fri, 3 May 2024 21:30:28 +0200 Subject: [PATCH] update --- cd.sh | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/cd.sh b/cd.sh index ec8ef3c..a0eeae7 100644 --- a/cd.sh +++ b/cd.sh @@ -67,6 +67,7 @@ cd_set_environment_variables () { CD_CA_ROOT="/etc/pki/ca-trust/source/anchors" CD_CMD_CA="update-ca-trust" CD_CMD_CLEAN="dnf clean all" + CD_CMD_UPDATE="dnf makecache" CD_CMD_UPGRADE="dnf upgrade --assumeyes" CD_FILE_HTTPS="/etc/dnf/dnf.conf.d/https.conf" CD_PYTHON_COMMAND="python3.11" @@ -83,6 +84,7 @@ cd_set_environment_variables () { CD_CA_ROOT="/usr/local/share/ca-certificates" CD_CMD_CA="update-ca-certificates" CD_CMD_CLEAN="apt-get clean" + CD_CMD_UPDATE="apt-get update" CD_CMD_UPGRADE="apt-get upgrade --assume-yes" CD_FILE_HTTPS="/etc/apt/apt.conf.d/https" CD_PYTHON_COMMAND="python3" @@ -205,10 +207,7 @@ Acquire::https::Verify-Peer False; cd_update_packages_catalog () { cd_step "Update packages catalog" - case "${CD_OS_ID}" in - "${CD_OS_ALMA}") dnf makecache || exit ;; - "${CD_OS_DEBIAN}") apt-get update || exit ;; - esac + ${CD_CMD_UPDATE} || exit } cd_install_packages_tools () {