This commit is contained in:
Marc Beninca 2024-05-03 17:20:44 +02:00
parent c068a571e6
commit 801d5a0dee
Signed by: marc.beninca
GPG key ID: 9C7613450C80C24F

30
cd.sh
View file

@ -16,11 +16,11 @@ cd_main () {
cd_set_dns_resolving cd_set_dns_resolving
cd_set_packages_repositories cd_set_packages_repositories
cd_set_packages_configuration cd_set_packages_configuration
cd_write_ca_certificates
cd_set_https_verification_off cd_set_https_verification_off
cd_update_packages_catalog cd_update_packages_catalog
cd_install_packages_tools cd_install_packages_tools
cd_install_ca_certificates cd_install_ca_certificates
cd_write_ca_certificates
cd_update_ca_certificates cd_update_ca_certificates
cd_set_https_verification_on cd_set_https_verification_on
cd_update_packages_catalog cd_update_packages_catalog
@ -175,20 +175,6 @@ Dir::Etc::SourceParts \"\";
esac esac
} }
cd_write_ca_certificates () {
local index
local text
cd_step "Copy CA"
cd_mkdir "${CD_CA_ROOT}"
index=1
eval "text=\"\${CD_CA_${index}}\""
while [ "${text}" ] ; do
cd_write "${CD_CA_ROOT}/${index}.crt" "${text}"
index=$((index+1))
eval "text=\"\${CD_CA_${index}}\""
done
}
cd_set_https_verification_off () { cd_set_https_verification_off () {
if [ "${CD_CA}" ] ; then if [ "${CD_CA}" ] ; then
cd_step "Set HTTPS verification off" cd_step "Set HTTPS verification off"
@ -228,6 +214,20 @@ cd_install_ca_certificates () {
cd_install_package "${CD_CA_PACKAGE}" cd_install_package "${CD_CA_PACKAGE}"
} }
cd_write_ca_certificates () {
local index
local text
cd_step "Copy CA"
cd_mkdir "${CD_CA_ROOT}"
index=1
eval "text=\"\${CD_CA_${index}}\""
while [ "${text}" ] ; do
cd_write "${CD_CA_ROOT}/${index}.crt" "${text}"
index=$((index+1))
eval "text=\"\${CD_CA_${index}}\""
done
}
cd_update_ca_certificates () { cd_update_ca_certificates () {
cd_step "Update CA" cd_step "Update CA"
case "${CD_OS_ID}" in case "${CD_OS_ID}" in