2014-12-10 06:20:15 -05:00
|
|
|
#!/bin/bash
|
|
|
|
|
2014-12-31 08:33:55 -05:00
|
|
|
# set variables in openerp-server.conf
|
|
|
|
sed -i "s/^db_host.*/db_host = $DB_PORT_5432_TCP_ADDR/" /etc/odoo/openerp-server.conf
|
|
|
|
sed -i "s/^db_port.*/db_port = $DB_PORT_5432_TCP_PORT/" /etc/odoo/openerp-server.conf
|
|
|
|
sed -i "s/^db_user.*/db_user = $DB_ENV_POSTGRES_USER/" /etc/odoo/openerp-server.conf
|
|
|
|
sed -i "s/^db_password.*/db_password = $DB_ENV_POSTGRES_PASSWORD/" /etc/odoo/openerp-server.conf
|
|
|
|
sed -i "\$adata_dir = /var/lib/odoo" /etc/odoo/openerp-server.conf
|
2014-12-10 06:20:15 -05:00
|
|
|
|
2014-12-29 04:36:27 -05:00
|
|
|
# start Odoo
|
|
|
|
exec gosu odoo /usr/bin/openerp-server --config /etc/odoo/openerp-server.conf
|