2014-12-10 06:20:15 -05:00
|
|
|
#!/bin/bash
|
|
|
|
|
|
|
|
# set openerp-server.conf
|
|
|
|
echo "[options]
|
|
|
|
; This is the password that allows database operations:
|
|
|
|
; admin_passwd = admin
|
|
|
|
db_host = $DB_PORT_5432_TCP_ADDR
|
|
|
|
db_port = $DB_PORT_5432_TCP_PORT
|
|
|
|
db_user = odoo
|
|
|
|
db_password = odoo
|
2014-12-29 04:36:27 -05:00
|
|
|
data_dir = /var/lib/odoo
|
2014-12-10 06:20:15 -05:00
|
|
|
addons_path = /usr/lib/python2.7/dist-packages/openerp/addons" > /etc/odoo/openerp-server.conf
|
|
|
|
|
2014-12-29 04:36:27 -05:00
|
|
|
# start Odoo
|
|
|
|
exec gosu odoo /usr/bin/openerp-server --config /etc/odoo/openerp-server.conf
|