From 571c4369616d28e6fae8260821e9d32cccecc28d Mon Sep 17 00:00:00 2001 From: Marc Beninca Date: Mon, 29 Apr 2024 17:53:51 +0200 Subject: [PATCH 1/2] ca_package --- cd.sh | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/cd.sh b/cd.sh index 9039eb9..b84ae39 100644 --- a/cd.sh +++ b/cd.sh @@ -35,6 +35,7 @@ cd_main () { cd_set_environment () { cd_step "Set environment" # + CD_CA_PACKAGE="ca-certificates" CD_DNS_FILE="/etc/resolv.conf" CD_GIT_PACKAGE="git" CD_PYTHON_COMMAND="python3" @@ -185,11 +186,7 @@ cd_install_packages_tools () { cd_install_ca () { cd_step "Install CA" - case "${CD_OS_NAME}" in - "debian") cd_install_package "ca-certificates" ;; - "alma") echo "TODO" ;; - *) cd_error_os "cd_install_ca" ;; - esac + cd_install_package "${CD_CA_PACKAGE}" } cd_copy_ca () { From e4cd7b186f75ce52d68135d37225b781ff960013 Mon Sep 17 00:00:00 2001 From: Marc Beninca Date: Mon, 29 Apr 2024 17:57:06 +0200 Subject: [PATCH 2/2] =?UTF-8?q?=E2=88=92bookworm?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- cd.sh | 4 ---- 1 file changed, 4 deletions(-) diff --git a/cd.sh b/cd.sh index b84ae39..a6696b6 100644 --- a/cd.sh +++ b/cd.sh @@ -44,10 +44,6 @@ cd_set_environment () { "debian") CD_PYTHON_PACKAGE="python3" CD_PYTHON_PACKAGES="/usr/lib/python3/dist-packages" - case "${CD_OS_VERSION}" in - "bookworm") echo "TODO" ;; - *) cd_error_os "CD_OS_VERSION" ;; - esac ;; "alma") case "${CD_OS_VERSION}" in