apt-get update && apt-get upgrade
apt-get install bash-completion nano mc zip unzip arj git mercurial bzr locate
update-alternatives --config editor
adduser --system --quiet --shell=/bin/bash --home=/opt/odoo --gecos 'odoo' --group odoo
apt-get install postgresql
su - postgres -c "createuser -s odoo" 2> /dev/null || true
apt-get install python-imaging python-passlib python-dateutil python-feedparser python-gdata 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 wget python-unittest2 python-mock python-jinja2 python-dev libpq-dev poppler-utils python-pdftools antiword ca-certificates python-six binutils cpp cpp-4.7 gcc-4.7 libgmp10 libgomp1 libitm1 libmpc2 libmpfr4 libquadmath0 python-crypto python-egenix-mxtools python-httplib2 python-keyring python-launchpadlib python-lazr.restfulclient python-lazr.uri python-oauth python-wadllib python-xdg python-zope.interface python-beautifulsoup python-decorator python-requests python-pypdf python-bs4 python-unidecode
cd /opt
mkdir odoo
cd odoo
git clone https://github.com/projectexpert/FULLPMIS.git
cd FULLPMIS
git submodule init
git submodule update --recursive
git submodule status
cd /opt/odoo&FULLPMIS
git pull
git submodule init
git submodule update --recursive
With the newer git versions you can simply:
git clone --recursive https://github.com/projectexpert/FULLPMIS.git
sudo cp /opt/odoo/FULLPMIS/odoo-conf/fullpmis-odoo-server /etc/init.d/fullpmis-odoo-server
chmod +x /etc/init.d/fullpmis-odoo-server
service fullpmis-odoo-server start
update-rc.d fullpmis-odoo-server defaults
apt-get install nginx
mkdir /etc/nginx/odoossl
cd /etc/nginx/odoossl
Generate certificate:
openssl genrsa -des3 -out odoo.pkey 1024
openssl rsa -in odoo.pkey -out odoo.key
openssl req -new -key odoo.key -out odoo.csr
openssl x509 -req -days 365 -in odoo.csr -signkey odoo.key -out odoo.crt
chown root:www-data odoo.crt odoo.key
chmod 640 odoo.crt odoo.key
mkdir /etc/ssl/odoossl
chown www-data:root /etc/ssl/odoossl
chmod 710 /etc/ssl/odoossl
mv odoo.crt odoo.key /etc/ssl/odoossl/
Nginx config:
nano /etc/nginx/sites-available/odoo-net