parent
a4be78f3ef
commit
8e0c8a88eb
1 changed files with 8 additions and 3 deletions
11
cd.sh
11
cd.sh
|
@ -143,7 +143,7 @@ Dir::Etc::SourceParts \"\";
|
||||||
"
|
"
|
||||||
cd_cat "/etc/apt/apt.conf.d/apt.conf"
|
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" ;;
|
*) cd_error_os "cd_set_packages_configuration" ;;
|
||||||
esac
|
esac
|
||||||
}
|
}
|
||||||
|
@ -157,7 +157,12 @@ Acquire::https::Verify-Peer False;
|
||||||
"
|
"
|
||||||
cd_cat "/etc/apt/apt.conf.d/https"
|
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" ;;
|
*) cd_error_os "cd_set_https_verification_off" ;;
|
||||||
esac
|
esac
|
||||||
}
|
}
|
||||||
|
@ -209,7 +214,7 @@ cd_set_https_verification_on () {
|
||||||
cd_step "Set HTTPS verification on"
|
cd_step "Set HTTPS verification on"
|
||||||
case "${CD_OS_NAME}" in
|
case "${CD_OS_NAME}" in
|
||||||
"debian") cd_rm "/etc/apt/apt.conf.d/https" ;;
|
"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" ;;
|
*) cd_error_os "cd_set_https_verification_on" ;;
|
||||||
esac
|
esac
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue