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 }