Browse Source

new: [odoo-tecnativa] add automatically ``--workers=WORKERS`` to command line

framadate
Valentin Lab 5 years ago
parent
commit
fdf631b2df
  1. 10
      odoo-tecnativa/hooks/init

10
odoo-tecnativa/hooks/init

@ -22,3 +22,13 @@ odoo_uid=$(get_odoo_uid)
mkdir -p "$LIB"
## XXXvlab: this one can fail if files are removed (from sessions dir)
find "$LIB" \! -user "$odoo_uid" -exec chown -v "$odoo_uid" {} + || true
## workers management
workers=$(options-get workers 2>&1) || true
workers=${workers:-1}
init-config-add "
$SERVICE_NAME:
command:
- \"--workers=${workers}\"
"
Loading…
Cancel
Save