diff --git a/NGINX-Installer.sh b/NGINX-Installer.sh index f712891..12864d9 100644 --- a/NGINX-Installer.sh +++ b/NGINX-Installer.sh @@ -319,9 +319,11 @@ fi apt install -y python-certbot-nginx if [ $domainwww = 1 ]; then certbot --nginx -n -d "$domain" -d "www.$domain" -m "$email" --hsts --redirect --no-eff-email --agree-tos + echo "certbot --nginx -n -d $domain -d www.$domain -m $email --hsts --redirect --no-eff-email --agree-tos" > ~/certbotactivate.sh elif [ $domainwww = 0 ]; then certbot --nginx -n -d "$domain" -m "$email" --hsts --redirect --no-eff-email --agree-tos + echo "certbot --nginx -n -d $domain -m $email --hsts --redirect --no-eff-email --agree-tos" > ~/certbotactivate.sh fi sed -i 's/ssl ipv6only/ssl http2 ipv6only/g' /etc/nginx/sites-available/"$domain" sed -i 's/listen 443 ssl/listen 443 ssl http2/g' /etc/nginx/sites-available/"$domain"