From 958306916baba6565e772ba4329abf712f464721 Mon Sep 17 00:00:00 2001 From: Yassine Aouam Date: Thu, 5 Jan 2023 14:53:42 +0100 Subject: [PATCH] Matrix-application --- docs/new_modif.md | 1 + .../templates/goofys/systemd/matrix-goofys.service.j2 | 6 +++++- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/docs/new_modif.md b/docs/new_modif.md index 5f5f5e65f..37b373ed4 100644 --- a/docs/new_modif.md +++ b/docs/new_modif.md @@ -24,6 +24,7 @@ Once you write the first character, options starting with that character begin t # log drive update matrix-docker-ansible-deploy/roles/custom/matrix-synapse/templates/synapse/systemd/matrix-synapse-worker.service.j2 +matrix-docker-ansible-deploy/roles/custom/matrix-synapse/templates/goofys/systemd/matrix-goofys.service.j2 {% if matrix_synapse_log_driver %} --log-driver={{ matrix_synapse_log_driver }} \ diff --git a/roles/custom/matrix-synapse/templates/goofys/systemd/matrix-goofys.service.j2 b/roles/custom/matrix-synapse/templates/goofys/systemd/matrix-goofys.service.j2 index f82fce5df..c6b0f0a75 100644 --- a/roles/custom/matrix-synapse/templates/goofys/systemd/matrix-goofys.service.j2 +++ b/roles/custom/matrix-synapse/templates/goofys/systemd/matrix-goofys.service.j2 @@ -12,7 +12,11 @@ ExecStartPre=-{{ devture_systemd_docker_base_host_command_docker }} kill %n ExecStartPre=-{{ devture_systemd_docker_base_host_command_docker }} rm %n ExecStart={{ devture_systemd_docker_base_host_command_docker }} run --rm --name %n \ - --log-driver=json-file \ + {% if matrix_synapse_log_driver %} + --log-driver={{ matrix_synapse_log_driver }} \ + {% else %} + --log-driver=none \ + {% endif %} --user={{ matrix_user_uid }}:{{ matrix_user_gid }} \ --mount type=bind,src=/etc/passwd,dst=/etc/passwd,ro \ --mount type=bind,src=/etc/group,dst=/etc/group,ro \