This commit is contained in:
Marc Beninca 2024-08-31 09:50:20 +02:00
parent a599e31cb1
commit c21b751b72
Signed by: marc.beninca
GPG key ID: 9C7613450C80C24F

View file

@ -1054,28 +1054,29 @@ Dir::Etc::SourceParts \"\";
spcd_step__packages_trust_https() { spcd_step__packages_trust_https() {
spcd_step "Trust HTTPS" spcd_step "Trust HTTPS"
local path text
if [ -n "${SPCD_CA_1}" ] || [ "${SPCD_PM}" = "${SPCD_PM_APT}" ]; then if [ -n "${SPCD_CA_1}" ] || [ "${SPCD_PM}" = "${SPCD_PM_APT}" ]; then
spcd_pth__path="$(spcd_https_path)" path="$(spcd_https_path)"
if [ -n "${spcd_pth__path}" ]; then if [ -n "${path}" ]; then
spcd_os_mkdir "$(dirname "${spcd_pth__path}")" spcd_os_mkdir "$(dirname "${path}")"
case "${SPCD_PM}" in case "${SPCD_PM}" in
"${SPCD_PM_APK}") spcd_pth__text="\ "${SPCD_PM_APK}") text="\
--no-verify --no-verify
" ;; " ;;
"${SPCD_PM_APT}") spcd_pth__text="\ "${SPCD_PM_APT}") text="\
Acquire::https::Verify-Peer False; Acquire::https::Verify-Peer False;
" ;; " ;;
"${SPCD_PM_DNF}") spcd_pth__text="\ "${SPCD_PM_DNF}") text="\
sslverify=False sslverify=False
" ;; " ;;
"${SPCD_PM_PACMAN}") spcd_pth__text="\ "${SPCD_PM_PACMAN}") text="\
SSLVerify = No SSLVerify = No
" ;; " ;;
"${SPCD_PM_ZYPPER}") ;; "${SPCD_PM_ZYPPER}") ;;
*) ;; *) ;;
esac esac
[ -n "${spcd_pth__text}" ] && [ -n "${text}" ] &&
spcd_os_write "${spcd_pth__path}" "${spcd_pth__text}" spcd_os_write "${path}" "${text}"
fi fi
fi fi
} }