Fix packagers

This commit is contained in:
JEEVITHA KANNAN K S 2024-09-30 14:50:18 +05:30
parent a9a678fc11
commit 2efa232c9d
No known key found for this signature in database
GPG Key ID: 5904C34A2F7CE333

View File

@ -8,20 +8,10 @@ printf "%b\n" "${YELLOW}Ensuring OpenSSL is installed...${RC}"
if ! command_exists openssl; then if ! command_exists openssl; then
case "$PACKAGER" in case "$PACKAGER" in
pacman) pacman)
"$ESCALATION_TOOL" "$PACKAGER" -Syu --noconfirm openssl "$ESCALATION_TOOL" "$PACKAGER" -S --noconfirm openssl
;;
apt-get|nala)
"$ESCALATION_TOOL" "$PACKAGER" install -y openssl
;;
dnf)
"$ESCALATION_TOOL" "$PACKAGER" install -y openssl
;;
zypper)
"$ESCALATION_TOOL" "$PACKAGER" install openssl
;; ;;
*) *)
printf "%b\n" "${RED}Unsupported package manager: ""$PACKAGER""${RC}" "$ESCALATION_TOOL" "$PACKAGER" install -y openssl
exit 1
;; ;;
esac esac
fi fi