From 8e0c8a88eb4a32d41bb5449f54d91eaf38fd8e06 Mon Sep 17 00:00:00 2001 From: Marc Beninca Date: Mon, 29 Apr 2024 19:57:18 +0200 Subject: [PATCH] dnf/https --- cd.sh | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/cd.sh b/cd.sh index 97ae1a8..d4d7f2f 100644 --- a/cd.sh +++ b/cd.sh @@ -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 }