trust
This commit is contained in:
parent
a599e31cb1
commit
c21b751b72
1 changed files with 10 additions and 9 deletions
|
@ -1054,28 +1054,29 @@ Dir::Etc::SourceParts \"\";
|
|||
|
||||
spcd_step__packages_trust_https() {
|
||||
spcd_step "Trust HTTPS"
|
||||
local path text
|
||||
if [ -n "${SPCD_CA_1}" ] || [ "${SPCD_PM}" = "${SPCD_PM_APT}" ]; then
|
||||
spcd_pth__path="$(spcd_https_path)"
|
||||
if [ -n "${spcd_pth__path}" ]; then
|
||||
spcd_os_mkdir "$(dirname "${spcd_pth__path}")"
|
||||
path="$(spcd_https_path)"
|
||||
if [ -n "${path}" ]; then
|
||||
spcd_os_mkdir "$(dirname "${path}")"
|
||||
case "${SPCD_PM}" in
|
||||
"${SPCD_PM_APK}") spcd_pth__text="\
|
||||
"${SPCD_PM_APK}") text="\
|
||||
--no-verify
|
||||
" ;;
|
||||
"${SPCD_PM_APT}") spcd_pth__text="\
|
||||
"${SPCD_PM_APT}") text="\
|
||||
Acquire::https::Verify-Peer False;
|
||||
" ;;
|
||||
"${SPCD_PM_DNF}") spcd_pth__text="\
|
||||
"${SPCD_PM_DNF}") text="\
|
||||
sslverify=False
|
||||
" ;;
|
||||
"${SPCD_PM_PACMAN}") spcd_pth__text="\
|
||||
"${SPCD_PM_PACMAN}") text="\
|
||||
SSLVerify = No
|
||||
" ;;
|
||||
"${SPCD_PM_ZYPPER}") ;;
|
||||
*) ;;
|
||||
esac
|
||||
[ -n "${spcd_pth__text}" ] &&
|
||||
spcd_os_write "${spcd_pth__path}" "${spcd_pth__text}"
|
||||
[ -n "${text}" ] &&
|
||||
spcd_os_write "${path}" "${text}"
|
||||
fi
|
||||
fi
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue