Skip to content

Commit ee8e13c

Browse files
authored
Update odoo_install.sh
1 parent f5c5e07 commit ee8e13c

1 file changed

Lines changed: 6 additions & 4 deletions

File tree

odoo_install.sh

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -350,20 +350,19 @@ else
350350
fi
351351

352352
#--------------------------------------------------
353-
# Enable ssl
353+
# Enable ssl with certbot
354354
#--------------------------------------------------
355355

356356
if [ $INSTALL_NGINX = "True" ] && [ $ENABLE_SSL = "True" ] && [ $ADMIN_EMAIL != '[email protected]' ];then
357357
sudo add-apt-repository ppa:certbot/certbot -y && sudo apt-get update -y
358358
sudo apt-get install python-certbot-nginx -y
359359
sudo certbot --nginx -d $WEBSITE_NAME --noninteractive --agree-tos --email $ADMIN_EMAIL --redirect
360360
sudo service nginx reload
361-
echo "SSL is enabled!"
361+
echo "SSL/HTTPS is enabled!"
362362
else
363-
echo "SSL isn't enabled due to choice of the user!"
363+
echo "SSL/HTTPS isn't enabled due to choice of the user!"
364364
fi
365365

366-
367366
echo -e "* Starting Odoo Service"
368367
sudo su root -c "/etc/init.d/$OE_CONFIG start"
369368
echo "-----------------------------------------------------------"
@@ -377,4 +376,7 @@ echo "Password superadmin (database): $OE_SUPERADMIN"
377376
echo "Start Odoo service: sudo service $OE_CONFIG start"
378377
echo "Stop Odoo service: sudo service $OE_CONFIG stop"
379378
echo "Restart Odoo service: sudo service $OE_CONFIG restart"
379+
if [ $INSTALL_NGINX = "True" ]; then
380+
echo "Nginx configuration at: /etc/nginx/sites-available/odo
381+
fi
380382
echo "-----------------------------------------------------------"

0 commit comments

Comments
 (0)