0% found this document useful (0 votes)
23 views

ANNEX1

Uploaded by

houda ennemiche
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
23 views

ANNEX1

Uploaded by

houda ennemiche
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 3

COMMANDS OF ODOO8

 sudo apt update &&sudo apt dist-upgrade

 sudo useradd -m -d /opt/odoo8 -U -r -s /bin/bash odoo8

 sudo apt install postgresql -y


 sudo su - postgres -c "createuser -s odoo8" 2> /dev/null || true

 sudo wget https://github.com/wkhtmltopdf/packaging/releases/download/0.12.6-


1/wkhtmltox_0.12.6-1.bionic_amd64.deb
 sudo apt install ./wkhtmltox_0.12.6-1.bionic_amd64.deb -y

 sudo apt update &&sudo apt install python2 -y

 curl https://bootstrap.pypa.io/pip/2.7/get-pip.py --output get-pip.py &&


 sudo python2 get-pip.py

 sudo mkdir /var/log/odoo8/ &&sudo chown odoo8: -R /var/log/odoo8/

 sudo apt install git -y

 sudo su - odoo8

 pip2 install cups dateutils decorator feedparser gdata jinja2 \


mako mock passlib gevent pydot pyparsing reportlab requests \
simplejson unicodecsv unittest2 vatnumber vobject werkzeug xlwt babel \
decorator netplan image unittest2 reportlab mako Python-Chart pytz \
lxml psycopg2-binary pyyaml unittest2 python-chart psutil \
requests simplejson docutils python-openid pyPdf psycogreen html2text &&
pip2 install passlib==1.6.5 &&
pip2 install werkzeug==0.9.6

 mkdir /opt/odoo8/odoo-server &&cd /opt/odoo8/odoo-server &&git clone


https://www.github.com/odoo/odoo --depth 1 --branch 8.0 --single-branch .

 cp debian/openerp-server.conf odoo-server.conf &&chown odoo8: odoo-server.conf


&&chmod 640 odoo-server.conf

 nano odoo-server.conf

[options]
admin_passwd = admin
db_host = False
db_port = False
db_user = odoo8
db_password = False
addons_path = /opt/odoo8/odoo-server/addons
logfile = /var/log/odoo8/odoo-server.log

exit

 sudo nano /etc/systemd/system/odoo8.service

[Unit]
Description=Odoo 8 startup script
Requires=postgresql.service
After=network.target postgresql.service
[Service]
Type=simple
SyslogIdentifier=odoo8
PermissionsStartOnly=true
User=odoo8
Group=odoo8
ExecStart=python2 /opt/odoo8/odoo-server/openerp-server -c /opt/odoo8/odoo-
server/odoo-server.conf
ExecStop=/bin/kill $MAINPID
StandardOutput=journal+console
[Install]
WantedBy=multi-user.target

 sudo systemctl daemon-reload &&sudo systemctl start odoo8.service &&sudo systemctl


enable odoo8

 sudo systemctl status odoo8

You might also like