|
|
@ -26,11 +26,19 @@ find "$LIB" \! -user "$odoo_uid" -print0 | while read-0 f; do |
|
|
|
done |
|
|
|
|
|
|
|
## workers management |
|
|
|
workers=$(options-get workers 2>&1) || true |
|
|
|
workers=$(options-get workers 2>/dev/null) || true |
|
|
|
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 " |
|
|
|
$SERVICE_NAME: |
|
|
|
command: |
|
|
|
- \"--workers=${workers}\" |
|
|
|
- \"-i ${modules}\" |
|
|
|
" |