From 2d4c5637142a02005448ac24d0053f5ed6293b7f Mon Sep 17 00:00:00 2001 From: "TRIXServer.com" Date: Tue, 23 Apr 2024 02:06:31 -0300 Subject: [PATCH] correct certbot --- odoo_install.sh | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/odoo_install.sh b/odoo_install.sh index 529c56f..8c0584c 100644 --- a/odoo_install.sh +++ b/odoo_install.sh @@ -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!"