From 0fb51b38efd62164c94e9fdad350bf4e2397bd71 Mon Sep 17 00:00:00 2001 From: Tommy Date: Mon, 1 Nov 2021 23:40:10 -0400 Subject: [PATCH] Update install.sh --- install.sh | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/install.sh b/install.sh index eaa57fe..37adce1 100644 --- a/install.sh +++ b/install.sh @@ -758,6 +758,11 @@ ssl_certs(){ fi if [ "$installoption" = "1" ] || [ "$installoption" = "3" ]; then + if [ "$lsb_dist" = "ubuntu" ] || [ "$lsb_dist" = "debian" ]; then + apt-get -y install python3-certbot-nginx + elif [ "$lsb_dist" = "fedora" ] || [ "$lsb_dist" = "centos" ] || [ "$lsb_dist" = "rhel" ] || [ "$lsb_dist" = "rocky" ] || [ "$lsb_dist" != "almalinux" ]; then + dnf -y install python3-certbot-nginx + fi certbot --nginx --redirect --no-eff-email --email "$email" --agree-tos -d "$FQDN" --non-interactive fi