@ -14,8 +14,6 @@
# ./odoo-install
################################################################################
##fixed parameters
#odoo
OE_USER = "odoo"
OE_HOME = " / $OE_USER "
OE_HOME_EXT = " / $OE_USER / ${ OE_USER } -server "
@ -24,10 +22,10 @@ OE_HOME_EXT="/$OE_USER/${OE_USER}-server"
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: 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, 1 1.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
OE_SUPERADMIN = "admin"
@ -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 1 1 ----"
echo -e "\n---- Install wkhtml and place shortcuts on correct place for ODOO 1 2 ----"
#pick up correct one from x64 & x32 versions:
if [ "`getconf LONG_BIT`" = = "64" ] ; then
_url = $WKHTMLTOX_X64