-
Notifications
You must be signed in to change notification settings - Fork 2
/
install.sh
81 lines (69 loc) · 2.58 KB
/
install.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
echo "Welcome to Odoo 11 installer for ubuntu 16.04"
echo -e "\n---- Configure locale ----"
sudo locale-gen
sudo sh -c "echo 'LANG=en_US.UTF-8\nLC_ALL=en_US.UTF-8' > /etc/default/locale"
sudo sh -c 'echo "LC_ALL=en_US.UTF-8" > /etc/environment'
echo -e "\n---- Update Server ----"
sudo apt-get update
echo -e "\n---- Install git and vim ----"
sudo apt-get install git vim -y
echo -e "\n---- Install Python3 and pip3 ----"
sudo apt-get install python3 -y
sudo apt-get install python3-pip -y
sudo -H pip3 install --upgrade pip
echo -e "\n---- Install NodeJs and its package manager ----"
sudo apt-get install npm -y
echo -e "\n---- Call node runs nodejs ----"
sudo ln -s /usr/bin/nodejs /usr/bin/node
echo -e "\n---- Install less compiler ----"
sudo npm install -g less less-plugin-clean-css
echo -e "\n---- Install Odoo system dependencies ----"
sudo -H pip3 install babel
sudo -H pip3 install decorator
sudo -H pip3 install docutils
sudo -H pip3 install ebaysdk
sudo -H pip3 install feedparser
sudo -H pip3 install gevent
sudo -H pip3 install greenlet
sudo -H pip3 install html2text
sudo -H pip3 install jinja2
sudo -H pip3 install lxml
sudo -H pip3 install Mako
sudo -H pip3 install MarkupSafe
sudo -H pip3 install mock
sudo -H pip3 install num2words
sudo -H pip3 install ofxparse
sudo -H pip3 install passlib
sudo -H pip3 install phonenumbers
sudo -H pip3 install Pillow
sudo -H pip3 install psutil
sudo -H pip3 install psycopg2
sudo -H pip3 install pydot
sudo -H pip3 install pyparsing
sudo -H pip3 install PyPDF2
sudo -H pip3 install pyserial
sudo -H pip3 install python-dateutil
sudo -H pip3 install pytz
sudo -H pip3 install pyusb
sudo -H pip3 install PyYAML
sudo -H pip3 install qrcode
sudo -H pip3 install reportlab
sudo -H pip3 install requests
sudo -H pip3 install suds-jurko
sudo -H pip3 install vatnumber
sudo -H pip3 install vobject
sudo -H pip3 install Werkzeug
sudo -H pip3 install XlsxWriter
sudo -H pip3 install xlwt
sudo -H pip3 install xlrd
echo -e "\n---- Install PostgreSQL & db superuser for unix user ----"
sudo apt-get install -y postgresql
sudo su - postgres -c "createuser -s $(whoami)"
echo -e "\n---- Create user for pgadmin (admin:admin) ----"
sudo su - postgres -c "createuser -s admin"
sudo -u postgres psql -c "ALTER USER admin WITH PASSWORD 'admin';"
echo -e "\n---- Configure postgresql to listen in all interfaces ----"
sudo sed -i "s/^#listen_addresses.*/listen_addresses = '*'/" /etc/postgresql/9.5/main/postgresql.conf
sudo sh -c 'echo "host all all all password" >> /etc/postgresql/9.5/main/pg_hba.conf'
sudo service postgresql restart
echo -e "\n---- End of installation ----"