Skip to content

Commit 9aeb963

Browse files
authored
[FIX] odoo_install: various fixes for V12 on Ubuntu 18.x
1 parent 54627eb commit 9aeb963

1 file changed

Lines changed: 13 additions & 11 deletions

File tree

odoo_install.sh

Lines changed: 13 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -14,22 +14,20 @@
1414
# ./odoo-install
1515
################################################################################
1616

17-
##fixed parameters
18-
#odoo
1917
OE_USER="odoo"
2018
OE_HOME="/$OE_USER"
2119
OE_HOME_EXT="/$OE_USER/${OE_USER}-server"
22-
#The default port where this Odoo instance will run under (provided you use the command -c in the terminal)
23-
#Set to true if you want to install it, false if you don't need it or have it already installed.
20+
# The default port where this Odoo instance will run under (provided you use the command -c in the terminal)
21+
# Set to true if you want to install it, false if you don't need it or have it already installed.
2422
INSTALL_WKHTMLTOPDF="True"
25-
#Set the default Odoo port (you still have to use -c /etc/odoo-server.conf for example to use this.)
23+
# Set the default Odoo port (you still have to use -c /etc/odoo-server.conf for example to use this.)
2624
OE_PORT="8069"
27-
#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.
28-
#IMPORTANT! This script contains extra libraries that are specifically needed for Odoo 11.0
25+
# 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.
26+
# IMPORTANT! This script contains extra libraries that are specifically needed for Odoo 12.0
2927
OE_VERSION="12.0"
30-
# Set this to True if you want to install Odoo 11 Enterprise!
28+
# Set this to True if you want to install the Odoo enterprise version!
3129
IS_ENTERPRISE="False"
32-
#set the superadmin password
30+
# set the superadmin password
3331
OE_SUPERADMIN="admin"
3432
OE_CONFIG="${OE_USER}-server"
3533

@@ -45,6 +43,8 @@ WKHTMLTOX_X32=https://downloads.wkhtmltopdf.org/0.12/0.12.1/wkhtmltox-0.12.1_lin
4543
# Update Server
4644
#--------------------------------------------------
4745
echo -e "\n---- Update Server ----"
46+
# universe package is for Ubuntu 18.x
47+
sudo add-apt-repository universe
4848
sudo apt-get update
4949
sudo apt-get upgrade -y
5050

@@ -61,12 +61,14 @@ sudo su - postgres -c "createuser -s $OE_USER" 2> /dev/null || true
6161
# Install Dependencies
6262
#--------------------------------------------------
6363
echo -e "\n--- Installing Python 3 + pip3 --"
64-
sudo apt-get install python3 python3-pip
64+
sudo apt-get install python3 python3-pip -y
6565

6666
echo -e "\n---- Install tool packages ----"
6767
sudo apt-get install wget git bzr python-pip gdebi-core -y
6868

6969
echo -e "\n---- Install python packages ----"
70+
sudo apt-get install libxml2-dev libxslt1-dev zlib1g-dev -y
71+
sudo apt-get install libsasl2-dev libldap2-dev libssl-dev -y
7072
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
7173
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
7274

@@ -83,7 +85,7 @@ sudo apt-get install python-gevent -y
8385
# Install Wkhtmltopdf if needed
8486
#--------------------------------------------------
8587
if [ $INSTALL_WKHTMLTOPDF = "True" ]; then
86-
echo -e "\n---- Install wkhtml and place shortcuts on correct place for ODOO 11 ----"
88+
echo -e "\n---- Install wkhtml and place shortcuts on correct place for ODOO 12 ----"
8789
#pick up correct one from x64 & x32 versions:
8890
if [ "`getconf LONG_BIT`" == "64" ];then
8991
_url=$WKHTMLTOX_X64

0 commit comments

Comments
 (0)