Skip to content

Instantly share code, notes, and snippets.

View thomich's full-sized avatar

Thomas Winteler thomich

View GitHub Profile
@thomich
thomich / Ubuntu_1604_flectra_installation.sh
Last active December 21, 2017 12:24
Install Flectra On Ubuntu 16.04 LTS
#!/bin/bash
sudo adduser --system --quiet --shell=/bin/bash --home=/home/flectra --gecos 'flectra' --group flectra
sudo passwd flectra
sudo usermod -a -G adm,sudo flectra
sudo mkdir /etc/flectra && sudo mkdir /opt/flectra && sudo mkdir /var/log/flectra/
sudo apt-get update && sudo apt-get upgrade -y && sudo apt-get install postgresql postgresql-server-dev-9.5 build-essential python3-pillow python3-lxml python-ldap3 python3-dev python3-pip python3-setuptools npm nodejs git gdebi libldap2-dev libsasl2-dev libxml2-dev libxslt1-dev libjpeg-dev zlib1g-dev -y
sudo git clone --depth=1 --branch=master https://github.com/flectrahq/flectra.git /opt/flectra/server
sudo chown flectra:flectra /opt/flectra/ -R && sudo chown flectra:flectra /var/log/flectra/ -R && cd /opt/flectra/server && sudo pip3 install -r requirements.txt
sudo npm install -g less less-plugin-clean-css -y && sudo ln -s /usr/bin/nodejs /usr/bin/node
cd /tmp && wget https://downloads.wkhtmltopdf.org/0.12/0.12.2.1/wkhtmltox-0.12.2.1_linux-trusty-amd64.deb
#!/bin/bash
sudo adduser --system --quiet --shell=/bin/bash --home=/home/odoo --gecos 'odoo' --group odoo
sudo usermod -a -G adm,sudo odoo
sudo mkdir /etc/odoo && sudo mkdir /opt/odoo && sudo mkdir /var/log/odoo/
sudo apt-get update && sudo apt-get upgrade -y && sudo apt-get install postgresql postgresql-server-dev-9.5 build-essential python-imaging python-lxml python-ldap python-dev libldap2-dev libsasl2-dev npm nodejs git python-setuptools libxml2-dev libxslt1-dev libjpeg-dev python-pip gdebi -y
git clone --depth=1 --branch=10.0 https://github.com/odoo/odoo.git /opt/odoo/server
sudo chown odoo:odoo /opt/odoo/ -R && sudo chown odoo:odoo /var/log/odoo/ -R && cd /opt/odoo/server && sudo pip install --upgrade pip && sudo pip install -r requirements.txt
sudo npm install -g less less-plugin-clean-css -y && sudo ln -s /usr/bin/nodejs /usr/bin/node
cd /tmp && wget https://downloads.wkhtmltopdf.org/0.12/0.12.2.1/wkhtmltox-0.12.2.1_linux-trusty-amd64.deb && sudo gdebi -n wkhtmltox-0.12.2.1_linux-trusty-amd64.deb && r