From 9aeb963a514894022ba3302579c6d58ff3e92759 Mon Sep 17 00:00:00 2001 From: "Yenthe V.G" Date: Wed, 10 Oct 2018 20:45:27 +0200 Subject: [PATCH] [FIX] odoo_install: various fixes for V12 on Ubuntu 18.x --- odoo_install.sh | 24 +++++++++++++----------- 1 file changed, 13 insertions(+), 11 deletions(-) diff --git a/odoo_install.sh b/odoo_install.sh index 3c629e2..6a9f96d 100644 --- a/odoo_install.sh +++ b/odoo_install.sh @@ -14,22 +14,20 @@ # ./odoo-install ################################################################################ -##fixed parameters -#odoo 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. +# 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.) +# 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: 11.0, 10.0, 9.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 11.0 +# 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 install Odoo 11 Enterprise! +# Set this to True if you want to install the Odoo enterprise version! IS_ENTERPRISE="False" -#set the superadmin password +# set the superadmin password OE_SUPERADMIN="admin" OE_CONFIG="${OE_USER}-server" @@ -45,6 +43,8 @@ WKHTMLTOX_X32=https://downloads.wkhtmltopdf.org/0.12/0.12.1/wkhtmltox-0.12.1_lin # Update Server #-------------------------------------------------- echo -e "\n---- Update Server ----" +# universe package is for Ubuntu 18.x +sudo add-apt-repository universe sudo apt-get update sudo apt-get upgrade -y @@ -61,12 +61,14 @@ sudo su - postgres -c "createuser -s $OE_USER" 2> /dev/null || true # Install Dependencies #-------------------------------------------------- echo -e "\n--- Installing Python 3 + pip3 --" -sudo apt-get install python3 python3-pip +sudo apt-get install python3 python3-pip -y echo -e "\n---- Install tool packages ----" sudo apt-get install wget git bzr python-pip gdebi-core -y echo -e "\n---- Install python packages ----" +sudo apt-get install libxml2-dev libxslt1-dev zlib1g-dev -y +sudo apt-get install libsasl2-dev libldap2-dev libssl-dev -y sudo apt-get install 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 install 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 @@ -83,7 +85,7 @@ sudo apt-get install python-gevent -y # Install Wkhtmltopdf if needed #-------------------------------------------------- if [ $INSTALL_WKHTMLTOPDF = "True" ]; then - echo -e "\n---- Install wkhtml and place shortcuts on correct place for ODOO 11 ----" + echo -e "\n---- Install wkhtml and place shortcuts on correct place for ODOO 12 ----" #pick up correct one from x64 & x32 versions: if [ "`getconf LONG_BIT`" == "64" ];then _url=$WKHTMLTOX_X64