#!/bin/bash

CONF=/opt/odoo/openerp-server.conf
ADDONS_PATH="/opt/odoo/odoo/addons,/opt/odoo/extra-addons/openerp-extra-6.0"

# Configuration generation
echo "
[options]
; Configuration file auto-generated
without_demo = True
upgrade = False
verbose = False
netrpc = True
netrpc_port = ${NETRPC_PORT:=8070}
xmlrpc = True
xmlrpc_port = ${XMLRPC_PORT:=8069}
xmlrpcs_port = ${XMLRPCS_PORT:=8071}
db_host = ${DB_HOST:=postgres}
db_port = ${DB_PORT:=5432}
db_user = $POSTGRES_USER
db_password = $POSTGRES_PASSWORD
root_path = None
soap = False
translate_modules = ['all']
demo = {}
addons_path = ${ADDONS_PATH}
reportgz = False
static_http_enable = false
static_http_document_root = /opt/odoo/www/html
static_http_url_prefix = /
admin_passwd = ${ADMIN_PASSWORD:=admin}" > $CONF
