|
@ -22,3 +22,13 @@ odoo_uid=$(get_odoo_uid) |
|
|
mkdir -p "$LIB" |
|
|
mkdir -p "$LIB" |
|
|
## XXXvlab: this one can fail if files are removed (from sessions dir) |
|
|
## XXXvlab: this one can fail if files are removed (from sessions dir) |
|
|
find "$LIB" \! -user "$odoo_uid" -exec chown -v "$odoo_uid" {} + || true |
|
|
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}\" |
|
|
|
|
|
" |