trust https

This commit is contained in:
Marc Beninca 2024-08-26 01:33:33 +02:00
parent 617695589f
commit a217194d80
Signed by: marc.beninca
GPG key ID: 9C7613450C80C24F

View file

@ -1024,9 +1024,9 @@ spcd_packages_set_configuration() {
esac esac
} }
spcd_set_https_verification_off() { spcd_packages_trust_https() {
spcd_step "Trust HTTPS"
if [ -n "${SPCD_CA}" ] || [ "${SPCD_PM}" = "${SPCD_PM_APT}" ]; then if [ -n "${SPCD_CA}" ] || [ "${SPCD_PM}" = "${SPCD_PM_APT}" ]; then
spcd_step "Set HTTPS verification off"
spcd_os_mkdir "$(dirname "${SPCD_PM_HTTPS_PATH}")" spcd_os_mkdir "$(dirname "${SPCD_PM_HTTPS_PATH}")"
spcd_os_write "${SPCD_PM_HTTPS_PATH}" "${SPCD_PM_HTTPS_TEXT}" spcd_os_write "${SPCD_PM_HTTPS_PATH}" "${SPCD_PM_HTTPS_TEXT}"
fi fi
@ -1261,9 +1261,9 @@ spcd_main() {
spcd_step_in "Packages" spcd_step_in "Packages"
spcd_packages_set_repositories spcd_packages_set_repositories
spcd_packages_set_configuration spcd_packages_set_configuration
spcd_packages_trust_https
spcd_step_out spcd_step_out
# #
spcd_set_https_verification_off
spcd_update_packages_catalog spcd_update_packages_catalog
spcd_install_packages_tools spcd_install_packages_tools
# ca # ca