matrix-synapse: Fix ternary with --set
This commit is contained in:
parent
6cbb8bf9fd
commit
c13ac3d9a4
2 changed files with 2 additions and 2 deletions
|
@ -21,7 +21,7 @@ data:
|
||||||
{{- $name := $worker | replace "_" "-" }}
|
{{- $name := $worker | replace "_" "-" }}
|
||||||
|
|
||||||
{{ $name }}.worker: |
|
{{ $name }}.worker: |
|
||||||
worker_app: "synapse.app.{{ $config.generic | ternary "generic_worker" $worker }}"
|
worker_app: "synapse.app.{{ (not (not $config.generic)) | ternary "generic_worker" $worker }}"
|
||||||
{{- if $config.name -}}
|
{{- if $config.name -}}
|
||||||
{{- if (ne $config.replicaCount 1) -}}
|
{{- if (ne $config.replicaCount 1) -}}
|
||||||
{{- fail "Replica count must be 1 if a worker has a unique name." -}}
|
{{- fail "Replica count must be 1 if a worker has a unique name." -}}
|
||||||
|
|
|
@ -63,7 +63,7 @@ spec:
|
||||||
-e "s/@@REDIS_PASSWORD@@/${REDIS_PASSWORD:-}/" \
|
-e "s/@@REDIS_PASSWORD@@/${REDIS_PASSWORD:-}/" \
|
||||||
> /synapse/config/conf.d/secrets.yaml
|
> /synapse/config/conf.d/secrets.yaml
|
||||||
|
|
||||||
exec python -B -m synapse.app.{{ $config.generic | ternary "generic_worker" $worker }} \
|
exec python -B -m synapse.app.{{ (not (not $config.generic)) | ternary "generic_worker" $worker }} \
|
||||||
-c /synapse/config/homeserver.yaml \
|
-c /synapse/config/homeserver.yaml \
|
||||||
-c /synapse/config/conf.d/ \
|
-c /synapse/config/conf.d/ \
|
||||||
-c /synapse/config/{{ $name }}.worker
|
-c /synapse/config/{{ $name }}.worker
|
||||||
|
|
Loading…
Reference in a new issue