diff --git a/odoo-tecnativa/hooks/init b/odoo-tecnativa/hooks/init index f375d47d..8f4c985c 100755 --- a/odoo-tecnativa/hooks/init +++ b/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}\" +"