mirror of
https://github.com/tommytran732/Pterodactyl-Script
synced 2024-11-22 18:41:32 -05:00
Update install.sh
This commit is contained in:
parent
05276d974c
commit
ee108552c6
15
install.sh
15
install.sh
@ -756,18 +756,13 @@ ssl_certs(){
|
|||||||
elif [ "$lsb_dist" = "fedora" ] || [ "$lsb_dist" = "centos" ] || [ "$lsb_dist" = "rhel" ] || [ "$lsb_dist" = "rocky" ] || [ "$lsb_dist" != "almalinux" ]; then
|
elif [ "$lsb_dist" = "fedora" ] || [ "$lsb_dist" = "centos" ] || [ "$lsb_dist" = "rhel" ] || [ "$lsb_dist" = "rocky" ] || [ "$lsb_dist" != "almalinux" ]; then
|
||||||
dnf -y install certbot
|
dnf -y install certbot
|
||||||
fi
|
fi
|
||||||
service nginx stop
|
|
||||||
certbot certonly --standalone --email "$email" --agree-tos -d "$FQDN" --non-interactive
|
if [ "$installoption" = "1" ] || [ "$installoption" = "3" ]; then
|
||||||
|
certbot --nginx --redirect --no-eff-email --email "$email" --agree-tos -d "$FQDN" --non-interactive
|
||||||
|
fi
|
||||||
|
|
||||||
if [ "$installoption" = "2" ]; then
|
if [ "$installoption" = "2" ]; then
|
||||||
if [ "$lsb_dist" = "ubuntu" ] || [ "$lsb_dist" = "debian" ]; then
|
certbot certonly --standalone --no-eff-email --email "$email" --agree-tos -d "$FQDN" --non-interactive
|
||||||
ufw deny 80
|
|
||||||
elif [ "$lsb_dist" = "fedora" ] || [ "$lsb_dist" = "centos" ] || [ "$lsb_dist" = "rhel" ]|| [ "$lsb_dist" = "rocky" ] || [ "$lsb_dist" != "almalinux" ]; then
|
|
||||||
firewall-cmd --permanent --remove-port=80/tcp
|
|
||||||
firewall-cmd --reload
|
|
||||||
fi
|
|
||||||
else
|
|
||||||
service nginx restart
|
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user