dnf/https
Some checks failed
/ job (push) Failing after 1m36s

This commit is contained in:
Marc Beninca 2024-04-29 19:57:18 +02:00
parent a4be78f3ef
commit 8e0c8a88eb
Signed by: marc.beninca
GPG key ID: 9C7613450C80C24F

11
cd.sh
View file

@ -143,7 +143,7 @@ Dir::Etc::SourceParts \"\";
"
cd_cat "/etc/apt/apt.conf.d/apt.conf"
;;
"alma") echo "TODO" ;;
"alma") mkdir "/etc/dnf/dnf.conf.d" || exit ;;
*) cd_error_os "cd_set_packages_configuration" ;;
esac
}
@ -157,7 +157,12 @@ Acquire::https::Verify-Peer False;
"
cd_cat "/etc/apt/apt.conf.d/https"
;;
"alma") echo "TODO" ;;
"alma")
cd_write "/etc/dnf/dnf.conf.d/https.conf" "\
sslverify=False
"
cd_cat "/etc/dnf/dnf.conf.d/https.conf"
;;
*) cd_error_os "cd_set_https_verification_off" ;;
esac
}
@ -209,7 +214,7 @@ cd_set_https_verification_on () {
cd_step "Set HTTPS verification on"
case "${CD_OS_NAME}" in
"debian") cd_rm "/etc/apt/apt.conf.d/https" ;;
"alma") echo "TODO" ;;
"alma") cd_rm "/etc/dnf/dnf.conf.d/https.conf" ;;
*) cd_error_os "cd_set_https_verification_on" ;;
esac
}