From d3af3ce33c12eee89e2dd4ba98adb1b3056f35be Mon Sep 17 00:00:00 2001 From: Tony Benoy Date: Sun, 1 Mar 2020 19:05:27 +0530 Subject: [PATCH] redirect and reload nginx --- odoo_install.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/odoo_install.sh b/odoo_install.sh index 6ed2217..57708f1 100644 --- a/odoo_install.sh +++ b/odoo_install.sh @@ -356,8 +356,8 @@ fi if [ $INSTALL_NGINX = "True" ] && [ $ENABLE_SSL = "True" ] && [ $ADMIN_EMAIL != 'odoo@example.com' ];then sudo add-apt-repository ppa:certbot/certbot -y && sudo apt-get update -y sudo apt-get install python-certbot-nginx -y - sudo certbot --nginx -d $WEBSITE_NAME --noninteractive --agree-tos --email $ADMIN_EMAIL - sudo certbot --nginx -d $WEBSITE_NAME --noninteractive + sudo certbot --nginx -d $WEBSITE_NAME --noninteractive --agree-tos --email $ADMIN_EMAIL --redirect + sudo service nginx reload echo "SSL is enabled!" else echo "SSL isn't enabled due to choice of the user!"