[IMP]Odoo : allows load command line from LOAD environment variable
This commit is contained in:
parent
91294da2ff
commit
83188c2f75
@ -3,6 +3,10 @@
|
|||||||
CONF=/opt/odoo/odoo.conf
|
CONF=/opt/odoo/odoo.conf
|
||||||
ODOOCMD="python OCB/odoo-bin --config $CONF"
|
ODOOCMD="python OCB/odoo-bin --config $CONF"
|
||||||
|
|
||||||
|
if [ $LOAD ]; then
|
||||||
|
ODOOCMD="$ODOOCMD --load=$LOAD"
|
||||||
|
fi
|
||||||
|
|
||||||
if [ "$DEV" == 1 ]; then
|
if [ "$DEV" == 1 ]; then
|
||||||
ODOOCMD="$ODOOCMD --dev all --log-handler :DEBUG"
|
ODOOCMD="$ODOOCMD --dev all --log-handler :DEBUG"
|
||||||
fi
|
fi
|
||||||
|
@ -3,5 +3,9 @@
|
|||||||
CONF=/opt/odoo/odoo.conf
|
CONF=/opt/odoo/odoo.conf
|
||||||
ODOOCMD="python /opt/odoo/OCB/odoo-bin --config $CONF"
|
ODOOCMD="python /opt/odoo/OCB/odoo-bin --config $CONF"
|
||||||
|
|
||||||
|
if [ $LOAD ]; then
|
||||||
|
ODOOCMD="$ODOOCMD --load=$LOAD"
|
||||||
|
fi
|
||||||
|
|
||||||
# Configuration generation and Odoo launch
|
# Configuration generation and Odoo launch
|
||||||
bash genconf.sh && $ODOOCMD
|
bash genconf.sh && $ODOOCMD
|
||||||
|
Loading…
Reference in New Issue
Block a user