1
0
mirror of https://github.com/tommytran732/Pterodactyl-Script synced 2024-11-08 04:41:33 -05:00

Update install.sh

This commit is contained in:
Tommy 2021-11-01 23:40:10 -04:00 committed by GitHub
parent ee108552c6
commit 0fb51b38ef
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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