From 85f3a1e8167c894aebb7ec6c32c1361af608f039 Mon Sep 17 00:00:00 2001 From: Tony Benoy Date: Sun, 1 Mar 2020 16:35:25 +0530 Subject: [PATCH 01/17] testing certbot --- odoo_install.sh | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/odoo_install.sh b/odoo_install.sh index 1cb34c2..ce98f85 100644 --- a/odoo_install.sh +++ b/odoo_install.sh @@ -38,6 +38,8 @@ OE_CONFIG="${OE_USER}-server" WEBSITE_NAME="_" # Set the default Odoo longpolling port (you still have to use -c /etc/odoo-server.conf for example to use this.) LONGPOLLING_PORT="8072" +# Set to "True" to install certbot and have ssl enabled, "False" to use http +ENABLE_SSL="True" ## ### WKHTMLTOPDF download links @@ -345,6 +347,22 @@ EOF else echo "Nginx isn't installed due to choice of the user!" fi + +#-------------------------------------------------- +# Enable ssl +#-------------------------------------------------- + +if [ $INSTALL_NGINX = "True" ] and [$ENABLE_SSL= "True" ]; + sudo add-apt-repository ppa:certbot/certbot && sudo apt-get update + sudo apt-get install python-certbot-nginx + sudo certbot --nginx -d $WEBSITE_NAME --noninteractive + echo "SSL is enabled!" + +else + echo "SSL isn't enabled due to choice of the user!" +fi + + echo -e "* Starting Odoo Service" sudo su root -c "/etc/init.d/$OE_CONFIG start" echo "-----------------------------------------------------------" From 64692600c68ea5d816b9d89f396d22712c99b779 Mon Sep 17 00:00:00 2001 From: Tony Benoy Date: Sun, 1 Mar 2020 17:02:24 +0530 Subject: [PATCH 02/17] missed then --- odoo_install.sh | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/odoo_install.sh b/odoo_install.sh index ce98f85..9359df6 100644 --- a/odoo_install.sh +++ b/odoo_install.sh @@ -352,14 +352,13 @@ fi # Enable ssl #-------------------------------------------------- -if [ $INSTALL_NGINX = "True" ] and [$ENABLE_SSL= "True" ]; +if [ $INSTALL_NGINX = "True" ] and [$ENABLE_SSL= "True" ];then sudo add-apt-repository ppa:certbot/certbot && sudo apt-get update sudo apt-get install python-certbot-nginx sudo certbot --nginx -d $WEBSITE_NAME --noninteractive echo "SSL is enabled!" - else - echo "SSL isn't enabled due to choice of the user!" + echo "SSL isn't enabled due to choice of the user!" fi From d45dc8bb4ee8cab3a4e945cf2e78191d7b4e2c6b Mon Sep 17 00:00:00 2001 From: Tony Benoy Date: Sun, 1 Mar 2020 18:24:56 +0530 Subject: [PATCH 03/17] ssl fix --- odoo_install.sh | 16 +++++++++------- 1 file changed, 9 insertions(+), 7 deletions(-) diff --git a/odoo_install.sh b/odoo_install.sh index 9359df6..6ed2217 100644 --- a/odoo_install.sh +++ b/odoo_install.sh @@ -35,12 +35,13 @@ OE_SUPERADMIN="admin" GENERATE_RANDOM_PASSWORD="True" OE_CONFIG="${OE_USER}-server" # Set the website name -WEBSITE_NAME="_" +WEBSITE_NAME="-" # Set the default Odoo longpolling port (you still have to use -c /etc/odoo-server.conf for example to use this.) LONGPOLLING_PORT="8072" # Set to "True" to install certbot and have ssl enabled, "False" to use http ENABLE_SSL="True" - +# Provide Email to register ssl certificate +ADMIN_EMAIL="odoo@example.com" ## ### WKHTMLTOPDF download links ## === Ubuntu Trusty x64 & x32 === (for other distributions please replace these two links, @@ -279,8 +280,8 @@ if [ $INSTALL_NGINX = "True" ]; then proxy_set_header X-Real-IP \$remote_addr; add_header X-Frame-Options "SAMEORIGIN"; add_header X-XSS-Protection "1; mode=block"; - proxy_set_header X-Client-IP $remote_addr; - proxy_set_header HTTP_X_FORWARDED_HOST $remote_addr; + proxy_set_header X-Client-IP \$remote_addr; + proxy_set_header HTTP_X_FORWARDED_HOST \$remote_addr; # odoo log files access_log /var/log/nginx/$OE_USER-access.log; @@ -352,9 +353,10 @@ fi # Enable ssl #-------------------------------------------------- -if [ $INSTALL_NGINX = "True" ] and [$ENABLE_SSL= "True" ];then - sudo add-apt-repository ppa:certbot/certbot && sudo apt-get update - sudo apt-get install python-certbot-nginx +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 echo "SSL is enabled!" else From d3af3ce33c12eee89e2dd4ba98adb1b3056f35be Mon Sep 17 00:00:00 2001 From: Tony Benoy Date: Sun, 1 Mar 2020 19:05:27 +0530 Subject: [PATCH 04/17] 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!" From a55aac9d8f08ac47a6f68e86f18c56e1847c5db3 Mon Sep 17 00:00:00 2001 From: Tony Benoy Date: Sun, 1 Mar 2020 19:10:09 +0530 Subject: [PATCH 05/17] typo --- odoo_install.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/odoo_install.sh b/odoo_install.sh index 57708f1..3c3eb2b 100644 --- a/odoo_install.sh +++ b/odoo_install.sh @@ -35,7 +35,7 @@ OE_SUPERADMIN="admin" GENERATE_RANDOM_PASSWORD="True" OE_CONFIG="${OE_USER}-server" # Set the website name -WEBSITE_NAME="-" +WEBSITE_NAME="_" # Set the default Odoo longpolling port (you still have to use -c /etc/odoo-server.conf for example to use this.) LONGPOLLING_PORT="8072" # Set to "True" to install certbot and have ssl enabled, "False" to use http From a9bbf19df607f4cf73ae65aaf64aaa57725e5112 Mon Sep 17 00:00:00 2001 From: Tony Benoy <8504669+tonybenoy@users.noreply.github.com> Date: Sun, 1 Mar 2020 19:18:27 +0530 Subject: [PATCH 06/17] Update README.md --- README.md | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/README.md b/README.md index aceef78..84afff4 100644 --- a/README.md +++ b/README.md @@ -21,6 +21,10 @@ There are a few things you can configure, this is the most used list:
```OE_SUPERADMIN``` is the master password for this Odoo installation.
```INSTALL_NGINX``` is set to ```False``` by default. Set this to ```True``` if you want to install Nginx.
```WEBSITE_NAME``` Set the website name here for nginx configuration
+```WEBSITE_NAME``` Set the website name here for nginx configuration
+```ENABLE_SSL``` Set installs certbot configures https with Let's Encrypted certificate +```ADMIN_EMAIL``` Email is needed to register for Let's Enctryped Registeration. Replace the default place holder with an email of your organisation. +```INSTALL_NGINX``` and ```ENABLE_SSL``` must be set to ```True``` and the place holder in ```ADMIN_EMAIL``` must be replaced with a valid email address for certbot installation #### 3. Make the script executable ``` From f5c5e07d7d86955dd472b80495cdc2234e400d4f Mon Sep 17 00:00:00 2001 From: Tony Benoy <8504669+tonybenoy@users.noreply.github.com> Date: Sun, 1 Mar 2020 19:18:58 +0530 Subject: [PATCH 07/17] Update README.md --- README.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 84afff4..525bbd8 100644 --- a/README.md +++ b/README.md @@ -22,9 +22,9 @@ There are a few things you can configure, this is the most used list:
```INSTALL_NGINX``` is set to ```False``` by default. Set this to ```True``` if you want to install Nginx.
```WEBSITE_NAME``` Set the website name here for nginx configuration
```WEBSITE_NAME``` Set the website name here for nginx configuration
-```ENABLE_SSL``` Set installs certbot configures https with Let's Encrypted certificate -```ADMIN_EMAIL``` Email is needed to register for Let's Enctryped Registeration. Replace the default place holder with an email of your organisation. -```INSTALL_NGINX``` and ```ENABLE_SSL``` must be set to ```True``` and the place holder in ```ADMIN_EMAIL``` must be replaced with a valid email address for certbot installation +```ENABLE_SSL``` Set installs certbot configures https with Let's Encrypted certificate
+```ADMIN_EMAIL``` Email is needed to register for Let's Enctryped Registeration. Replace the default place holder with an email of your organisation.
+```INSTALL_NGINX``` and ```ENABLE_SSL``` must be set to ```True``` and the place holder in ```ADMIN_EMAIL``` must be replaced with a valid email address for certbot installation
#### 3. Make the script executable ``` From ee8e13cbedda1fe66e4232765a02445fdc755931 Mon Sep 17 00:00:00 2001 From: Tony Benoy <8504669+tonybenoy@users.noreply.github.com> Date: Mon, 2 Mar 2020 01:06:21 +0530 Subject: [PATCH 08/17] Update odoo_install.sh --- odoo_install.sh | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/odoo_install.sh b/odoo_install.sh index 3c3eb2b..b08c233 100644 --- a/odoo_install.sh +++ b/odoo_install.sh @@ -350,7 +350,7 @@ else fi #-------------------------------------------------- -# Enable ssl +# Enable ssl with certbot #-------------------------------------------------- if [ $INSTALL_NGINX = "True" ] && [ $ENABLE_SSL = "True" ] && [ $ADMIN_EMAIL != 'odoo@example.com' ];then @@ -358,12 +358,11 @@ if [ $INSTALL_NGINX = "True" ] && [ $ENABLE_SSL = "True" ] && [ $ADMIN_EMAIL != sudo apt-get install python-certbot-nginx -y sudo certbot --nginx -d $WEBSITE_NAME --noninteractive --agree-tos --email $ADMIN_EMAIL --redirect sudo service nginx reload - echo "SSL is enabled!" + echo "SSL/HTTPS is enabled!" else - echo "SSL isn't enabled due to choice of the user!" + echo "SSL/HTTPS isn't enabled due to choice of the user!" fi - echo -e "* Starting Odoo Service" sudo su root -c "/etc/init.d/$OE_CONFIG start" echo "-----------------------------------------------------------" @@ -377,4 +376,7 @@ echo "Password superadmin (database): $OE_SUPERADMIN" echo "Start Odoo service: sudo service $OE_CONFIG start" echo "Stop Odoo service: sudo service $OE_CONFIG stop" echo "Restart Odoo service: sudo service $OE_CONFIG restart" +if [ $INSTALL_NGINX = "True" ]; then + echo "Nginx configuration at: /etc/nginx/sites-available/odo +fi echo "-----------------------------------------------------------" From 75bcbbcfa5508ffcbc638f217deb49c323262ec1 Mon Sep 17 00:00:00 2001 From: Tony Benoy <8504669+tonybenoy@users.noreply.github.com> Date: Mon, 2 Mar 2020 01:13:10 +0530 Subject: [PATCH 09/17] Update README.md --- README.md | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 525bbd8..0034215 100644 --- a/README.md +++ b/README.md @@ -22,9 +22,10 @@ There are a few things you can configure, this is the most used list:
```INSTALL_NGINX``` is set to ```False``` by default. Set this to ```True``` if you want to install Nginx.
```WEBSITE_NAME``` Set the website name here for nginx configuration
```WEBSITE_NAME``` Set the website name here for nginx configuration
-```ENABLE_SSL``` Set installs certbot configures https with Let's Encrypted certificate
+```ENABLE_SSL``` Set installs [certbot](https://github.com/certbot/certbot) configures https with Let's Encrypted certificate
```ADMIN_EMAIL``` Email is needed to register for Let's Enctryped Registeration. Replace the default place holder with an email of your organisation.
```INSTALL_NGINX``` and ```ENABLE_SSL``` must be set to ```True``` and the place holder in ```ADMIN_EMAIL``` must be replaced with a valid email address for certbot installation
+ _By enabling SSL though cerbot you agree to the following [policies](https://www.eff.org/code/privacy/policy)_
#### 3. Make the script executable ``` From 4d0256ffa8606d949f270681d607d355cac46a66 Mon Sep 17 00:00:00 2001 From: Tony Benoy <8504669+tonybenoy@users.noreply.github.com> Date: Mon, 2 Mar 2020 01:14:05 +0530 Subject: [PATCH 10/17] Update README.md --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 0034215..a5fd648 100644 --- a/README.md +++ b/README.md @@ -25,7 +25,7 @@ There are a few things you can configure, this is the most used list:
```ENABLE_SSL``` Set installs [certbot](https://github.com/certbot/certbot) configures https with Let's Encrypted certificate
```ADMIN_EMAIL``` Email is needed to register for Let's Enctryped Registeration. Replace the default place holder with an email of your organisation.
```INSTALL_NGINX``` and ```ENABLE_SSL``` must be set to ```True``` and the place holder in ```ADMIN_EMAIL``` must be replaced with a valid email address for certbot installation
- _By enabling SSL though cerbot you agree to the following [policies](https://www.eff.org/code/privacy/policy)_
+ _By enabling SSL though certbot you agree to the following [policies](https://www.eff.org/code/privacy/policy)_
#### 3. Make the script executable ``` From dc043f4462d26a0078c48259ade064e5fd8b4d6e Mon Sep 17 00:00:00 2001 From: Tony Benoy <8504669+tonybenoy@users.noreply.github.com> Date: Mon, 2 Mar 2020 01:16:37 +0530 Subject: [PATCH 11/17] Update odoo_install.sh --- odoo_install.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/odoo_install.sh b/odoo_install.sh index b08c233..aa59f61 100644 --- a/odoo_install.sh +++ b/odoo_install.sh @@ -377,6 +377,6 @@ echo "Start Odoo service: sudo service $OE_CONFIG start" echo "Stop Odoo service: sudo service $OE_CONFIG stop" echo "Restart Odoo service: sudo service $OE_CONFIG restart" if [ $INSTALL_NGINX = "True" ]; then - echo "Nginx configuration at: /etc/nginx/sites-available/odo + echo "Nginx configuration at: /etc/nginx/sites-available/odoo" fi echo "-----------------------------------------------------------" From 2f10dfc8704eabbb7aae32c71605ed530a8ac660 Mon Sep 17 00:00:00 2001 From: Tony Benoy Date: Sat, 7 Mar 2020 13:48:43 +0530 Subject: [PATCH 12/17] changes --- README.md | 6 ++--- odoo_install.sh | 4 +-- odoo_uninstall.sh | 65 +++++++++++++++++++++++++++++++++++++++++++++++ 3 files changed, 70 insertions(+), 5 deletions(-) create mode 100644 odoo_uninstall.sh diff --git a/README.md b/README.md index a5fd648..667101a 100644 --- a/README.md +++ b/README.md @@ -22,9 +22,9 @@ There are a few things you can configure, this is the most used list:
```INSTALL_NGINX``` is set to ```False``` by default. Set this to ```True``` if you want to install Nginx.
```WEBSITE_NAME``` Set the website name here for nginx configuration
```WEBSITE_NAME``` Set the website name here for nginx configuration
-```ENABLE_SSL``` Set installs [certbot](https://github.com/certbot/certbot) configures https with Let's Encrypted certificate
-```ADMIN_EMAIL``` Email is needed to register for Let's Enctryped Registeration. Replace the default place holder with an email of your organisation.
-```INSTALL_NGINX``` and ```ENABLE_SSL``` must be set to ```True``` and the place holder in ```ADMIN_EMAIL``` must be replaced with a valid email address for certbot installation
+```ENABLE_SSL``` Set this to ```True``` installs [certbot](https://github.com/certbot/certbot) configures https with a free Let's Encrypted certificate
+```ADMIN_EMAIL``` Email is needed to register for Let's Enctryped Registeration. Replace the default placeholder with an email of your organisation.
+```INSTALL_NGINX``` and ```ENABLE_SSL``` must be set to ```True``` and the placeholder in ```ADMIN_EMAIL``` must be replaced with a valid email address for certbot installation
_By enabling SSL though certbot you agree to the following [policies](https://www.eff.org/code/privacy/policy)_
#### 3. Make the script executable diff --git a/odoo_install.sh b/odoo_install.sh index aa59f61..57dcb95 100644 --- a/odoo_install.sh +++ b/odoo_install.sh @@ -353,14 +353,14 @@ fi # Enable ssl with certbot #-------------------------------------------------- -if [ $INSTALL_NGINX = "True" ] && [ $ENABLE_SSL = "True" ] && [ $ADMIN_EMAIL != 'odoo@example.com' ];then +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 python-certbot-nginx -y sudo certbot --nginx -d $WEBSITE_NAME --noninteractive --agree-tos --email $ADMIN_EMAIL --redirect sudo service nginx reload echo "SSL/HTTPS is enabled!" else - echo "SSL/HTTPS isn't enabled due to choice of the user!" + echo "SSL/HTTPS isn't enabled due to choice of the user or because of a misconfiguration!" fi echo -e "* Starting Odoo Service" diff --git a/odoo_uninstall.sh b/odoo_uninstall.sh new file mode 100644 index 0000000..f97a020 --- /dev/null +++ b/odoo_uninstall.sh @@ -0,0 +1,65 @@ +#!/bin/bash +################################################################################ +# Script for uninstalling Odoo on Ubuntu 14.04, 15.04, 16.04 and 18.04 (could be used for other version too) +# Author: Tony Benoy +#------------------------------------------------------------------------------- +# This script will uninstall Odoo from your Ubuntu 16.04 server. +#------------------------------------------------------------------------------ +# Make a new file: +# sudo nano odoo-uninstall.sh +# Place this content in it and then make the file executable: +# sudo chmod +x odoo-uninstall.sh +# Execute the script to install Odoo: +# ./odoo-uninstall +################################################################################ + +OE_USER="odoo" +OE_HOME="/$OE_USER" +OE_HOME_EXT="/$OE_USER/${OE_USER}-server" +#The default port where this Odoo instance will run under (provided you use the command -c in the terminal) +#Set to true if you want to install it, false if you don't need it or have it already installed. +INSTALL_WKHTMLTOPDF="True" +#Set the default Odoo port (you still have to use -c /etc/odoo-server.conf for example to use this.) +OE_PORT="8069" +#Choose the Odoo version which you want to install. For example: 12.0,11.0, 10.0 or saas-18. When using 'master' the master version will be installed. +#IMPORTANT! This script contains extra libraries that are specifically needed for Odoo 12.0 +OE_VERSION="12.0" +# Set this to True if you want to uninstall Odoo Enterprise version! +IS_ENTERPRISE="False" +# Set this to True if you want to uninstall Nginx! +INSTALL_NGINX="False" + +OE_CONFIG="${OE_USER}-server" + +#-------------------------------------------------- +# Install PostgreSQL Server +#-------------------------------------------------- +echo -e "\n---- Uninstall PostgreSQL Server ----" +sudo apt-get remove --purge postgresql -y +#-------------------------------------------------- +# Install Dependencies +#-------------------------------------------------- +echo -e "\n--- Installing Python 3 + pip3 --" +sudo apt-get remove --purge python3 python3-pip -y + +echo -e "\n---- Install tool packages ----" +sudo apt-get remove --purge wget git bzr python-pip gdebi-core -y + +echo -e "\n---- Install python packages ----" +sudo apt-get remove --purge libxml2-dev libxslt1-dev zlib1g-dev libpng12-0 -y +sudo apt-get remove --purge libsasl2-dev libldap2-dev libssl-dev -y +sudo apt-get remove --purge python-pypdf2 python-dateutil python-feedparser python-ldap python-libxslt1 python-lxml python-mako python-openid python-psycopg2 python-pybabel python-pychart python-pydot python-pyparsing python-reportlab python-simplejson python-tz python-vatnumber python-vobject python-webdav python-werkzeug python-xlwt python-yaml python-zsi python-docutils python-psutil python-mock python-unittest2 python-jinja2 python-pypdf python-decorator python-requests python-passlib python-pil -y +sudo pip3 uninstall pypdf2 Babel passlib Werkzeug decorator python-dateutil pyyaml psycopg2 psutil html2text docutils lxml pillow reportlab ninja2 requests gdata XlsxWriter vobject python-openid pyparsing pydot mock mako Jinja2 ebaysdk feedparser xlwt psycogreen suds-jurko pytz pyusb greenlet xlrd chardet libsass + +echo -e "\n---- Install python libraries ----" +# This is for compatibility with Ubuntu 16.04. Will work on 14.04, 15.04 and 16.04 +sudo apt-get install python3-suds + +echo -e "\n--- Install other required packages" +sudo apt-get remove --purge node-clean-css -y +sudo apt-get remove --purge node-less -y +sudo apt-get remove --purge python-gevent -y +sudo rm -rf /odoo +sudo apt-get remove --purge nginx +sudo rm /etc/init.d/$OE_CONFIG +sudo rm /etc/${OE_CONFIG}.conf \ No newline at end of file From 05164b7e45df2bb8e7b8acc457bfca5ced8c541a Mon Sep 17 00:00:00 2001 From: Tony Benoy Date: Sat, 7 Mar 2020 13:59:07 +0530 Subject: [PATCH 13/17] message change Signed-off-by: Tony Benoy --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 667101a..3706005 100644 --- a/README.md +++ b/README.md @@ -22,7 +22,7 @@ There are a few things you can configure, this is the most used list:
```INSTALL_NGINX``` is set to ```False``` by default. Set this to ```True``` if you want to install Nginx.
```WEBSITE_NAME``` Set the website name here for nginx configuration
```WEBSITE_NAME``` Set the website name here for nginx configuration
-```ENABLE_SSL``` Set this to ```True``` installs [certbot](https://github.com/certbot/certbot) configures https with a free Let's Encrypted certificate
+```ENABLE_SSL``` Set this to ```True``` to install [certbot](https://github.com/certbot/certbot) and configure nginx with https using a free Let's Encrypted certificate
```ADMIN_EMAIL``` Email is needed to register for Let's Enctryped Registeration. Replace the default placeholder with an email of your organisation.
```INSTALL_NGINX``` and ```ENABLE_SSL``` must be set to ```True``` and the placeholder in ```ADMIN_EMAIL``` must be replaced with a valid email address for certbot installation
_By enabling SSL though certbot you agree to the following [policies](https://www.eff.org/code/privacy/policy)_
From 01698d53fe36d7df5368339fdc4991ae956958ab Mon Sep 17 00:00:00 2001 From: Tony Benoy <8504669+tonybenoy@users.noreply.github.com> Date: Sat, 7 Mar 2020 18:16:02 +0530 Subject: [PATCH 14/17] Update README.md Co-Authored-By: Yenthe Van Ginneken --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 3706005..f0cbbd8 100644 --- a/README.md +++ b/README.md @@ -25,7 +25,7 @@ There are a few things you can configure, this is the most used list:
```ENABLE_SSL``` Set this to ```True``` to install [certbot](https://github.com/certbot/certbot) and configure nginx with https using a free Let's Encrypted certificate
```ADMIN_EMAIL``` Email is needed to register for Let's Enctryped Registeration. Replace the default placeholder with an email of your organisation.
```INSTALL_NGINX``` and ```ENABLE_SSL``` must be set to ```True``` and the placeholder in ```ADMIN_EMAIL``` must be replaced with a valid email address for certbot installation
- _By enabling SSL though certbot you agree to the following [policies](https://www.eff.org/code/privacy/policy)_
+ _By enabling SSL through Let's Encrypt you agree to the following [policies](https://www.eff.org/code/privacy/policy)_
#### 3. Make the script executable ``` From 330344fa8329b00334030440d7199148aa995e4c Mon Sep 17 00:00:00 2001 From: Tony Benoy <8504669+tonybenoy@users.noreply.github.com> Date: Sat, 7 Mar 2020 18:16:21 +0530 Subject: [PATCH 15/17] Update README.md Co-Authored-By: Yenthe Van Ginneken --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index f0cbbd8..3a36a2c 100644 --- a/README.md +++ b/README.md @@ -23,7 +23,7 @@ There are a few things you can configure, this is the most used list:
```WEBSITE_NAME``` Set the website name here for nginx configuration
```WEBSITE_NAME``` Set the website name here for nginx configuration
```ENABLE_SSL``` Set this to ```True``` to install [certbot](https://github.com/certbot/certbot) and configure nginx with https using a free Let's Encrypted certificate
-```ADMIN_EMAIL``` Email is needed to register for Let's Enctryped Registeration. Replace the default placeholder with an email of your organisation.
+```ADMIN_EMAIL``` Email is needed to register for Let's Encrypt registration. Replace the default placeholder with an email of your organisation.
```INSTALL_NGINX``` and ```ENABLE_SSL``` must be set to ```True``` and the placeholder in ```ADMIN_EMAIL``` must be replaced with a valid email address for certbot installation
_By enabling SSL through Let's Encrypt you agree to the following [policies](https://www.eff.org/code/privacy/policy)_
From f86d67020341a35a2548ddb11aaaaa0dedbae29d Mon Sep 17 00:00:00 2001 From: Tony Benoy Date: Sat, 7 Mar 2020 18:17:57 +0530 Subject: [PATCH 16/17] changes Signed-off-by: Tony Benoy --- README.md | 2 +- odoo_install.sh | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 3a36a2c..48f77c0 100644 --- a/README.md +++ b/README.md @@ -25,7 +25,7 @@ There are a few things you can configure, this is the most used list:
```ENABLE_SSL``` Set this to ```True``` to install [certbot](https://github.com/certbot/certbot) and configure nginx with https using a free Let's Encrypted certificate
```ADMIN_EMAIL``` Email is needed to register for Let's Encrypt registration. Replace the default placeholder with an email of your organisation.
```INSTALL_NGINX``` and ```ENABLE_SSL``` must be set to ```True``` and the placeholder in ```ADMIN_EMAIL``` must be replaced with a valid email address for certbot installation
- _By enabling SSL through Let's Encrypt you agree to the following [policies](https://www.eff.org/code/privacy/policy)_
+ _By enabling SSL though Let's Encrypt you agree to the following [policies](https://www.eff.org/code/privacy/policy)_
#### 3. Make the script executable ``` diff --git a/odoo_install.sh b/odoo_install.sh index 57dcb95..b748a62 100644 --- a/odoo_install.sh +++ b/odoo_install.sh @@ -377,6 +377,6 @@ echo "Start Odoo service: sudo service $OE_CONFIG start" echo "Stop Odoo service: sudo service $OE_CONFIG stop" echo "Restart Odoo service: sudo service $OE_CONFIG restart" if [ $INSTALL_NGINX = "True" ]; then - echo "Nginx configuration at: /etc/nginx/sites-available/odoo" + echo "Nginx configuration file: /etc/nginx/sites-available/odoo" fi echo "-----------------------------------------------------------" From 80400f88830937f0d10521b8621e7c78e8c4830d Mon Sep 17 00:00:00 2001 From: Tony Benoy Date: Sat, 7 Mar 2020 19:29:25 +0530 Subject: [PATCH 17/17] remove file --- odoo_uninstall.sh | 65 ----------------------------------------------- 1 file changed, 65 deletions(-) delete mode 100644 odoo_uninstall.sh diff --git a/odoo_uninstall.sh b/odoo_uninstall.sh deleted file mode 100644 index f97a020..0000000 --- a/odoo_uninstall.sh +++ /dev/null @@ -1,65 +0,0 @@ -#!/bin/bash -################################################################################ -# Script for uninstalling Odoo on Ubuntu 14.04, 15.04, 16.04 and 18.04 (could be used for other version too) -# Author: Tony Benoy -#------------------------------------------------------------------------------- -# This script will uninstall Odoo from your Ubuntu 16.04 server. -#------------------------------------------------------------------------------ -# Make a new file: -# sudo nano odoo-uninstall.sh -# Place this content in it and then make the file executable: -# sudo chmod +x odoo-uninstall.sh -# Execute the script to install Odoo: -# ./odoo-uninstall -################################################################################ - -OE_USER="odoo" -OE_HOME="/$OE_USER" -OE_HOME_EXT="/$OE_USER/${OE_USER}-server" -#The default port where this Odoo instance will run under (provided you use the command -c in the terminal) -#Set to true if you want to install it, false if you don't need it or have it already installed. -INSTALL_WKHTMLTOPDF="True" -#Set the default Odoo port (you still have to use -c /etc/odoo-server.conf for example to use this.) -OE_PORT="8069" -#Choose the Odoo version which you want to install. For example: 12.0,11.0, 10.0 or saas-18. When using 'master' the master version will be installed. -#IMPORTANT! This script contains extra libraries that are specifically needed for Odoo 12.0 -OE_VERSION="12.0" -# Set this to True if you want to uninstall Odoo Enterprise version! -IS_ENTERPRISE="False" -# Set this to True if you want to uninstall Nginx! -INSTALL_NGINX="False" - -OE_CONFIG="${OE_USER}-server" - -#-------------------------------------------------- -# Install PostgreSQL Server -#-------------------------------------------------- -echo -e "\n---- Uninstall PostgreSQL Server ----" -sudo apt-get remove --purge postgresql -y -#-------------------------------------------------- -# Install Dependencies -#-------------------------------------------------- -echo -e "\n--- Installing Python 3 + pip3 --" -sudo apt-get remove --purge python3 python3-pip -y - -echo -e "\n---- Install tool packages ----" -sudo apt-get remove --purge wget git bzr python-pip gdebi-core -y - -echo -e "\n---- Install python packages ----" -sudo apt-get remove --purge libxml2-dev libxslt1-dev zlib1g-dev libpng12-0 -y -sudo apt-get remove --purge libsasl2-dev libldap2-dev libssl-dev -y -sudo apt-get remove --purge python-pypdf2 python-dateutil python-feedparser python-ldap python-libxslt1 python-lxml python-mako python-openid python-psycopg2 python-pybabel python-pychart python-pydot python-pyparsing python-reportlab python-simplejson python-tz python-vatnumber python-vobject python-webdav python-werkzeug python-xlwt python-yaml python-zsi python-docutils python-psutil python-mock python-unittest2 python-jinja2 python-pypdf python-decorator python-requests python-passlib python-pil -y -sudo pip3 uninstall pypdf2 Babel passlib Werkzeug decorator python-dateutil pyyaml psycopg2 psutil html2text docutils lxml pillow reportlab ninja2 requests gdata XlsxWriter vobject python-openid pyparsing pydot mock mako Jinja2 ebaysdk feedparser xlwt psycogreen suds-jurko pytz pyusb greenlet xlrd chardet libsass - -echo -e "\n---- Install python libraries ----" -# This is for compatibility with Ubuntu 16.04. Will work on 14.04, 15.04 and 16.04 -sudo apt-get install python3-suds - -echo -e "\n--- Install other required packages" -sudo apt-get remove --purge node-clean-css -y -sudo apt-get remove --purge node-less -y -sudo apt-get remove --purge python-gevent -y -sudo rm -rf /odoo -sudo apt-get remove --purge nginx -sudo rm /etc/init.d/$OE_CONFIG -sudo rm /etc/${OE_CONFIG}.conf \ No newline at end of file