correct certbot

pull/415/head
TRIXServer.com 2 years ago committed by GitHub
parent d8a8cc51f2
commit 2d4c563714
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -283,8 +283,9 @@ fi
#--------------------------------------------------
if [ $INSTALL_NGINX = "True" ] && [ $ENABLE_SSL = "True" ] && [ $ADMIN_EMAIL != "odoo@example.com" ] && [ $WEBSITE_NAME != "_" ];then
sudo add-apt-repository ppa:certbot/certbot -y && sudo apt-get update -y
sudo apt-get install python3-certbot-nginx -y
sudo apt-get install snapd -y
sudo snap install --classic certbot
sudo ln -s /snap/bin/certbot /usr/bin/certbot
sudo certbot --nginx -d $WEBSITE_NAME --noninteractive --agree-tos --email $ADMIN_EMAIL --redirect
sudo service nginx reload
echo "SSL/HTTPS is enabled!"

Loading…
Cancel
Save