From 06d34057dc846036ecdb1c6f1264b12efed5b4e4 Mon Sep 17 00:00:00 2001 From: Marc Beninca Date: Fri, 26 Apr 2024 16:23:30 +0200 Subject: [PATCH] https/off --- cd.sh | 17 ++++++++++++----- 1 file changed, 12 insertions(+), 5 deletions(-) diff --git a/cd.sh b/cd.sh index e143c0d..68e37a4 100644 --- a/cd.sh +++ b/cd.sh @@ -87,16 +87,23 @@ Dir::Etc::SourceParts \"\"; esac } +function cd_set_https_verification_off { + cd_step "${FUNCNAME}" + case "${CD_OS_NAME}" in + 'debian') + cd_write '/etc/apt/apt.conf.d/https' "\ +Acquire::https::Verify-Peer False; +" + ;; + *) exit 1 ;; + esac +} + function cd_main { cd_set_dns_resolving cd_set_packages_repositories cd_set_packages_configuration -cd_step "disable package verification" -echo -n "\ -Acquire::https::Verify-Peer False; -" > '/etc/apt/apt.conf.d/https' \ -|| exit cd_step "update package catalog" apt-get update \ || exit