https/off

This commit is contained in:
Marc Beninca 2024-04-26 16:23:30 +02:00
parent d594bb532e
commit 06d34057dc
Signed by: marc.beninca
GPG key ID: 9C7613450C80C24F

17
cd.sh
View file

@ -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