[IMP]Odoo v12 image : add LOAD and config for dbfilter

This commit is contained in:
Fabien BOURGEOIS 2022-01-31 17:33:37 +01:00
parent 8b94b905ee
commit 887388c6e3
2 changed files with 5 additions and 0 deletions

View File

@ -42,4 +42,5 @@ limit_time_cpu = ${LIMIT_TIME_CPU:=120}
limit_time_real = ${LIMIT_TIME_REAL:=240}
limit_memory_soft = ${LIMIT_MEMORY_SOFT:=2684354560}
limit_memory_hard = ${LIMIT_MEMORY_HARD:=6442450944}
database_from_hosts = ${DATABASE_FROM_HOSTS}
admin_passwd = ${ADMIN_PASSWORD:=admin}" > $CONF

View File

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