File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -350,20 +350,19 @@ else
350350fi
351351
352352# --------------------------------------------------
353- # Enable ssl
353+ # Enable ssl with certbot
354354# --------------------------------------------------
355355
356356if [
$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!"
362362else
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!"
364364fi
365365
366-
367366echo -e " * Starting Odoo Service"
368367sudo su root -c " /etc/init.d/$OE_CONFIG start"
369368echo " -----------------------------------------------------------"
@@ -377,4 +376,7 @@ echo "Password superadmin (database): $OE_SUPERADMIN"
377376echo " Start Odoo service: sudo service $OE_CONFIG start"
378377echo " Stop Odoo service: sudo service $OE_CONFIG stop"
379378echo " 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
380382echo " -----------------------------------------------------------"
You can’t perform that action at this time.
0 commit comments