fix
This commit is contained in:
parent
725ad1acd1
commit
a99369e8ae
1 changed files with 18 additions and 16 deletions
6
cd.sh
6
cd.sh
|
@ -178,7 +178,7 @@ Dir::Etc::SourceParts \"\";
|
||||||
}
|
}
|
||||||
|
|
||||||
cd_set_https_verification_off () {
|
cd_set_https_verification_off () {
|
||||||
[ "${CD_CA}" ] || [ "${CD_OS_ID}" = "${CD_OS_DEBIAN}" ] || exit
|
if [ "${CD_CA}" -o "${CD_OS_ID}" = "${CD_OS_DEBIAN}" ] ; then
|
||||||
cd_step "Set HTTPS verification off"
|
cd_step "Set HTTPS verification off"
|
||||||
case "${CD_OS_ID}" in
|
case "${CD_OS_ID}" in
|
||||||
"${CD_OS_DEBIAN}")
|
"${CD_OS_DEBIAN}")
|
||||||
|
@ -192,6 +192,7 @@ sslverify=False
|
||||||
"
|
"
|
||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
cd_update_packages_catalog () {
|
cd_update_packages_catalog () {
|
||||||
|
@ -238,12 +239,13 @@ cd_update_ca_certificates () {
|
||||||
}
|
}
|
||||||
|
|
||||||
cd_set_https_verification_on () {
|
cd_set_https_verification_on () {
|
||||||
[ "${CD_CA}" ] || [ "${CD_OS_ID}" = "${CD_OS_DEBIAN}" ] || exit
|
if [ "${CD_CA}" -o "${CD_OS_ID}" = "${CD_OS_DEBIAN}" ] ; then
|
||||||
cd_step "Set HTTPS verification on"
|
cd_step "Set HTTPS verification on"
|
||||||
case "${CD_OS_ID}" in
|
case "${CD_OS_ID}" in
|
||||||
"${CD_OS_DEBIAN}") cd_rm "/etc/apt/apt.conf.d/https" ;;
|
"${CD_OS_DEBIAN}") cd_rm "/etc/apt/apt.conf.d/https" ;;
|
||||||
"${CD_OS_ALMA}") cd_rm "/etc/dnf/dnf.conf.d/https.conf" ;;
|
"${CD_OS_ALMA}") cd_rm "/etc/dnf/dnf.conf.d/https.conf" ;;
|
||||||
esac
|
esac
|
||||||
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
cd_upgrade_packages () {
|
cd_upgrade_packages () {
|
||||||
|
|
Loading…
Reference in a new issue