|
@ -26,11 +26,19 @@ find "$LIB" \! -user "$odoo_uid" -print0 | while read-0 f; do |
|
|
done |
|
|
done |
|
|
|
|
|
|
|
|
## workers management |
|
|
## workers management |
|
|
workers=$(options-get workers 2>&1) || true |
|
|
|
|
|
|
|
|
workers=$(options-get workers 2>/dev/null) || true |
|
|
workers=${workers:-1} |
|
|
workers=${workers:-1} |
|
|
|
|
|
|
|
|
|
|
|
modules=$(options-get modules 2>/dev/null | yaml_get_values ,) || true |
|
|
|
|
|
if [ -z "$modules" ]; then |
|
|
|
|
|
modules=base,l10n_fr |
|
|
|
|
|
else |
|
|
|
|
|
modules="base,${modules}" |
|
|
|
|
|
fi |
|
|
|
|
|
|
|
|
init-config-add " |
|
|
init-config-add " |
|
|
$SERVICE_NAME: |
|
|
$SERVICE_NAME: |
|
|
command: |
|
|
command: |
|
|
- \"--workers=${workers}\" |
|
|
- \"--workers=${workers}\" |
|
|
|
|
|
- \"-i ${modules}\" |
|
|
" |
|
|
" |