Parcourir la source

Fix invalid matrix-postgres.service when matrix_postgres_process_extra_arguments is empty

This only seems to be affecting some people badly enough to cause
matrix-postgres not to start. Certain systemd versions probably handle
it better or something.

Fixes https://github.com/spantaleev/matrix-docker-ansible-deploy/issues/889
(hopefully)
pull/891/head
Slavi Pantaleev il y a 5 ans
Parent
révision
108aed53be
1 fichiers modifiés avec 1 ajouts et 4 suppressions
  1. +1
    -4
      roles/matrix-postgres/templates/systemd/matrix-postgres.service.j2

+ 1
- 4
roles/matrix-postgres/templates/systemd/matrix-postgres.service.j2 Voir le fichier

@@ -29,10 +29,7 @@ ExecStart={{ matrix_host_command_docker }} run --rm --name matrix-postgres \
{{ arg }} \ {{ arg }} \
{% endfor %} {% endfor %}
{{ matrix_postgres_docker_image_to_use }} \ {{ matrix_postgres_docker_image_to_use }} \
postgres \
{% for arg in matrix_postgres_process_extra_arguments %}
{{ arg }} \
{% endfor %}
postgres {{ matrix_postgres_process_extra_arguments|join(' ') }}


ExecStop=-{{ matrix_host_command_sh }} -c '{{ matrix_host_command_docker }} kill matrix-postgres 2>/dev/null' ExecStop=-{{ matrix_host_command_sh }} -c '{{ matrix_host_command_docker }} kill matrix-postgres 2>/dev/null'
ExecStop=-{{ matrix_host_command_sh }} -c '{{ matrix_host_command_docker }} rm matrix-postgres 2>/dev/null' ExecStop=-{{ matrix_host_command_sh }} -c '{{ matrix_host_command_docker }} rm matrix-postgres 2>/dev/null'


Chargement…
Annuler
Enregistrer