parent
da2b2fa97a
commit
a125cf9a99
1 changed files with 3 additions and 6 deletions
9
cd.sh
9
cd.sh
|
@ -104,34 +104,31 @@ cd_set_environment_variables () {
|
|||
cd_echo "CD_OS_ID" "CD_OS_VERSION"
|
||||
# universal
|
||||
CD_DNS_FILE="/etc/resolv.conf"
|
||||
CD_PKG_CA="ca-certificates"
|
||||
CD_PKG_GIT="git"
|
||||
cd_split
|
||||
cd_echo "CD_DNS_FILE" "CD_PKG_GIT"
|
||||
cd_echo "CD_DNS_FILE" "CD_PKG_CA" "CD_PKG_GIT"
|
||||
# shared
|
||||
case "${CD_OS_ID}" in
|
||||
"${CD_OS_ALMA}"|"${CD_OS_FEDORA}"|"${CD_OS_ROCKY}")
|
||||
CD_CA_ROOT="/etc/pki/ca-trust/source/anchors"
|
||||
CD_CMD_CA="update-ca-trust"
|
||||
CD_PKG_CA="ca-certificates"
|
||||
;;
|
||||
"${CD_OS_ALPINE}")
|
||||
CD_CA_ROOT="/usr/local/share/ca-certificates"
|
||||
CD_CMD_CA="update-ca-certificates"
|
||||
CD_PKG_CA="ca-certificates-bundle"
|
||||
;;
|
||||
"${CD_OS_ARCH}")
|
||||
CD_CA_ROOT="/etc/ca-certificates/trust-source/anchors"
|
||||
CD_CMD_CA="update-ca-trust"
|
||||
CD_PKG_CA="ca-certificates"
|
||||
;;
|
||||
"${CD_OS_DEBIAN}"|"${CD_OS_UBUNTU}")
|
||||
CD_CA_ROOT="/usr/local/share/ca-certificates"
|
||||
CD_CMD_CA="update-ca-certificates"
|
||||
CD_PKG_CA="ca-certificates"
|
||||
;;
|
||||
esac
|
||||
cd_split
|
||||
cd_echo "CD_CA_ROOT" "CD_CMD_CA" "CD_PKG_CA"
|
||||
cd_echo "CD_CA_ROOT" "CD_CMD_CA"
|
||||
# common
|
||||
case "${CD_OS_ID}" in
|
||||
"${CD_OS_ALMA}"|"${CD_OS_FEDORA}"|"${CD_OS_ROCKY}")
|
||||
|
|
Loading…
Reference in a new issue