cmd/query,pkg/ca

This commit is contained in:
Marc Beninca 2024-05-05 18:31:28 +02:00
parent 0db2fc61fe
commit 96d00e8398
Signed by: marc.beninca
GPG key ID: 9C7613450C80C24F

10
cd.sh
View file

@ -90,7 +90,6 @@ cd_set_environment_variables () {
cd_echo "CD_OS_ID" "CD_OS_VERSION" cd_echo "CD_OS_ID" "CD_OS_VERSION"
# universal # universal
CD_DNS_FILE="/etc/resolv.conf" CD_DNS_FILE="/etc/resolv.conf"
CD_PKG_CA="ca-certificates"
CD_PKG_GIT="git" CD_PKG_GIT="git"
cd_split cd_split
cd_echo "CD_DNS_FILE" "CD_PKG_CA" "CD_PKG_GIT" cd_echo "CD_DNS_FILE" "CD_PKG_CA" "CD_PKG_GIT"
@ -112,8 +111,10 @@ cd_set_environment_variables () {
"${CD_OS_ALMA}"|"${CD_OS_ROCKY}") "${CD_OS_ALMA}"|"${CD_OS_ROCKY}")
CD_CMD_CLEAN="dnf clean all" CD_CMD_CLEAN="dnf clean all"
CD_CMD_INSTALL="dnf install --assumeyes" CD_CMD_INSTALL="dnf install --assumeyes"
CD_CMD_QUERY="rpm --query"
CD_CMD_UPDATE="dnf makecache" CD_CMD_UPDATE="dnf makecache"
CD_CMD_UPGRADE="dnf upgrade --assumeyes" CD_CMD_UPGRADE="dnf upgrade --assumeyes"
CD_PKG_CA="ca-certificates"
CD_PKG_PKG="" CD_PKG_PKG=""
CD_PM_CONF_PATH="/etc/dnf/dnf.conf" CD_PM_CONF_PATH="/etc/dnf/dnf.conf"
CD_PM_CONF_TEXT="\ CD_PM_CONF_TEXT="\
@ -130,8 +131,10 @@ skip_if_unavailable=False
"${CD_OS_ALPINE}") "${CD_OS_ALPINE}")
CD_CMD_CLEAN="apk cache purge" CD_CMD_CLEAN="apk cache purge"
CD_CMD_INSTALL="apk add" CD_CMD_INSTALL="apk add"
CD_CMD_QUERY="apk info"
CD_CMD_UPDATE="apk update" CD_CMD_UPDATE="apk update"
CD_CMD_UPGRADE="apk upgrade" CD_CMD_UPGRADE="apk upgrade"
CD_PKG_CA="ca-certificates-bundle"
CD_PKG_PKG="" CD_PKG_PKG=""
CD_PM_CONF_PATH="" CD_PM_CONF_PATH=""
CD_PM_CONF_TEXT="" CD_PM_CONF_TEXT=""
@ -141,8 +144,10 @@ skip_if_unavailable=False
"${CD_OS_DEBIAN}"|"${CD_OS_UBUNTU}") "${CD_OS_DEBIAN}"|"${CD_OS_UBUNTU}")
CD_CMD_CLEAN="apt-get clean" CD_CMD_CLEAN="apt-get clean"
CD_CMD_INSTALL="apt-get install --assume-yes" CD_CMD_INSTALL="apt-get install --assume-yes"
CD_CMD_QUERY="dpkg-query --show"
CD_CMD_UPDATE="apt-get update" CD_CMD_UPDATE="apt-get update"
CD_CMD_UPGRADE="apt-get upgrade --assume-yes" CD_CMD_UPGRADE="apt-get upgrade --assume-yes"
CD_PKG_CA="ca-certificates"
CD_PKG_PKG="apt-utils" CD_PKG_PKG="apt-utils"
CD_PM_CONF_PATH="/etc/apt/apt.conf.d/apt.conf" CD_PM_CONF_PATH="/etc/apt/apt.conf.d/apt.conf"
CD_PM_CONF_TEXT="\ CD_PM_CONF_TEXT="\
@ -157,7 +162,8 @@ Dir::Etc::SourceParts \"\";
;; ;;
esac esac
cd_split cd_split
cd_echo "CD_CMD_CLEAN" "CD_CMD_INSTALL" "CD_CMD_UPDATE" "CD_CMD_UPGRADE" cd_echo "CD_CMD_CLEAN" \
"CD_CMD_INSTALL" "CD_CMD_QUERY" "CD_CMD_UPDATE" "CD_CMD_UPGRADE"
cd_split cd_split
cd_echo "CD_PKG_PKG" "CD_PM_CONF_PATH" "CD_PM_HTTPS_PATH" cd_echo "CD_PKG_PKG" "CD_PM_CONF_PATH" "CD_PM_HTTPS_PATH"
# specific # specific