From 998c5f23864b7941197b8daf9ebe8afb79458925 Mon Sep 17 00:00:00 2001 From: Marc Beninca Date: Fri, 26 Apr 2024 16:27:36 +0200 Subject: [PATCH] update --- cd.sh | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) diff --git a/cd.sh b/cd.sh index 68e37a4..a4cf213 100644 --- a/cd.sh +++ b/cd.sh @@ -99,14 +99,21 @@ Acquire::https::Verify-Peer False; esac } +function cd_update_packages_catalog { + cd_step "${FUNCNAME}" + case "${CD_OS_NAME}" in + 'debian') apt-get update ;; + *) exit 1 ;; + esac +} + function cd_main { cd_set_dns_resolving cd_set_packages_repositories cd_set_packages_configuration + cd_set_https_verification_off + cd_update_packages_catalog -cd_step "update package catalog" -apt-get update \ -|| exit cd_step "install CA certificates package" apt-get install --yes 'ca-certificates' \ || exit