[IMP]Odoo : allows load command line from LOAD environment variable

This commit is contained in:
Fabien BOURGEOIS 2017-11-10 06:46:16 +01:00
parent 91294da2ff
commit 83188c2f75
2 changed files with 8 additions and 0 deletions

View File

@ -3,6 +3,10 @@
CONF=/opt/odoo/odoo.conf
ODOOCMD="python OCB/odoo-bin --config $CONF"
if [ $LOAD ]; then
ODOOCMD="$ODOOCMD --load=$LOAD"
fi
if [ "$DEV" == 1 ]; then
ODOOCMD="$ODOOCMD --dev all --log-handler :DEBUG"
fi

View File

@ -3,5 +3,9 @@
CONF=/opt/odoo/odoo.conf
ODOOCMD="python /opt/odoo/OCB/odoo-bin --config $CONF"
if [ $LOAD ]; then
ODOOCMD="$ODOOCMD --load=$LOAD"
fi
# Configuration generation and Odoo launch
bash genconf.sh && $ODOOCMD