-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathodoo-install-11.0-extra_python-package.sh
48 lines (39 loc) · 1.5 KB
/
odoo-install-11.0-extra_python-package.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
#!/bin/bash
################################################################################
#
# Script for installing Odoo V11 extra addons and dependies for Ubuntu 16.4
# Author: Lucas Huber
#
################################################################################
# Update distro
sudo apt-get update
# Installing of requirements
# pip3 install -r requirements.txt
# If you are thinking of using Odoo to create your website, it is a good idea to get GeoIP.
# GeoIP locates the origin of the user and helps your business to understand the demographics better.
wget -N http://geolite.maxmind.com/download/geoip/database/GeoLiteCity.dat.gz && gunzip GeoLiteCity.dat.gz &&
mkdir /usr/share/GeoIP/ && mv GeoLiteCity.dat /usr/share/GeoIP/
# for OCA GeoIP locates import module
sudo apt-get install python-requests python-unicodecsv -y
# for OCA auto-backup
sudo pip3 install pysftp
# Install the PyOTP library
sudo pip3 install pyotp
# Misc libraries
sudo pip3 install unidecode
sudo pip3 install wand
sudo pip3 install checksumdir
sudo pip3 install num2words
sudo pip3 install cachetools
sudo pip3 install validate_email
sudo pip3 install phonenumbers
sudo pip3 install simplejson
# 2FA module requirement
sudo pip3 install qrcode[pil]
# Certbot install
sudo apt-get install software-properties-common -y
sudo add-apt-repository ppa:certbot/certbot -y
sudo apt-get update
sudo apt-get install python-certbot-nginx -y
# SAML2 needs teh Lasso library
sudo apt-get install libxml2-dev libxmlsec1-dev python3-lasso -y