-
-
Save jovanimoura/9ad0010e5f4cf9fcc82cc1d6ed733db1 to your computer and use it in GitHub Desktop.
Install Odoo v10 Enterprise (with Bista repositories)
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
################################################################################ | |
# Script for installing Odoo V10 on Ubuntu 17.04, 16.04, 15.04, 14.04 | |
# Author: Yenthe Van Ginneken | |
# Adjusted: Ray Carnes | |
# Adaptation: Jôvani Moura | |
# Assumes you already have an Ubuntu user called "odoo" with a home folder. | |
# Assumes you already have installed postgresql server, pip, git and node. | |
#------------------------------------------------------------------------------- | |
# Make a new file: | |
# sudo nano odoo-install.sh | |
# Place this content in it and then make the file executable: | |
# sudo chmod +x odoo-install.sh | |
# Execute the script to install Odoo: | |
# ./odoo-install | |
################################################################################ | |
WKHTMLTOX_X64=https://downloads.wkhtmltopdf.org/0.12/0.12.1/wkhtmltox-0.12.1_linux-trusty-amd64.deb | |
#-------------------------------------------------- | |
# Update Server | |
#-------------------------------------------------- | |
echo -e "\n---- Update Server ----" | |
sudo apt-get update | |
sudo apt-get upgrade -y | |
#-------------------------------------------------- | |
# Install Dependencies | |
#-------------------------------------------------- | |
echo -e "\n---- Install tool packages ----" | |
sudo apt-get install wget subversion git bzr bzrtools python-pip gdebi-core -y | |
echo -e "\n---- Install python packages ----" | |
sudo apt-get install python-suds 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 | |
echo -e "\n---- Install python libraries ----" | |
sudo pip install gdata psycogreen ofxparse XlsxWriter | |
echo -e "\n--- Install other required packages" | |
sudo apt-get install node-clean-css -y | |
sudo apt-get install node-less -y | |
sudo apt-get install python-gevent -y | |
sudo npm install -g less -y | |
sudo npm install -g less-plugin-clean-css -y | |
sudo wget $WKHTMLTOX_X64 | |
sudo gdebi --n `basename $WKHTMLTOX_X64` | |
sudo ln -s /usr/local/bin/wkhtmltopdf /usr/bin | |
sudo ln -s /usr/local/bin/wkhtmltoimage /usr/bin | |
echo -e "\n---- Create Log directory ----" | |
sudo mkdir /var/log/odoo10 | |
sudo chown odoo:odoo /var/log/odoo10 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment