diff --git a/spcd/bootstrap.sh b/spcd/bootstrap.sh index dd0ee7d..9d7bf0c 100644 --- a/spcd/bootstrap.sh +++ b/spcd/bootstrap.sh @@ -604,22 +604,29 @@ ${SPCD_PROJECT_ROOT}$(basename "${GITHUB_SERVER_URL}")" case "${SPCD_OS_ID}" in "${SPCD_OS_ALMA}" | "${SPCD_OS_FEDORA}" | "${SPCD_OS_ROCKY}") SPCD_CA_ROOT="/etc/pki/ca-trust/source/anchors" - SPCD_CMD_CA="update-ca-trust" ;; - "${SPCD_OS_ALPINE}") + "${SPCD_OS_ALPINE}" | "${SPCD_OS_DEBIAN}" | "${SPCD_OS_UBUNTU}") SPCD_CA_ROOT="/usr/local/share/ca-certificates" - SPCD_CMD_CA="update-ca-certificates" ;; "${SPCD_OS_ARCH}") SPCD_CA_ROOT="/etc/ca-certificates/trust-source/anchors" - SPCD_CMD_CA="update-ca-trust" - ;; - "${SPCD_OS_DEBIAN}" | "${SPCD_OS_UBUNTU}") - SPCD_CA_ROOT="/usr/local/share/ca-certificates" - SPCD_CMD_CA="update-ca-certificates" ;; "${SPCD_OS_OPENSUSE}") SPCD_CA_ROOT="/etc/pki/trust/anchors" + ;; + *) ;; + esac + case "${SPCD_OS_ID}" in + "${SPCD_OS_ARCH}" | \ + "${SPCD_OS_ALMA}" | \ + "${SPCD_OS_FEDORA}" | \ + "${SPCD_OS_ROCKY}") + SPCD_CMD_CA="update-ca-trust" + ;; + "${SPCD_OS_ALPINE}" | \ + "${SPCD_OS_DEBIAN}" | \ + "${SPCD_OS_OPENSUSE}" | \ + "${SPCD_OS_UBUNTU}") SPCD_CMD_CA="update-ca-certificates" ;; *) ;;