fix(synapse): use appservice group IDs instead of group names

This fixes that the groups aren't available by name in the container
image, so we're using the IDs instead.
This commit is contained in:
Jan Christian Grünhage 2024-05-13 20:33:08 +02:00
parent 4ee415f8e5
commit 2ae5058842
No known key found for this signature in database
GPG key ID: EEC1170CE56FA2ED
2 changed files with 3 additions and 2 deletions

View file

@ -44,7 +44,8 @@
entrypoint: "python"
command: "{{ item.container_command }}"
env: "{{ matrix_synapse_docker_env }}"
user: "{{ synapse_user.uid }}:{{ appservice_group.gid }}"
user: "{{ synapse_user.uid }}:{{ synapse_user.group }}"
groups: "{{ appservice_group.results | map(attribute='gid') }}"
volumes: "{{ matrix_synapse_docker_volumes + item.extra_volumes }}"
ports: "{{ item.ports | default(omit) }}"
healthcheck:

View file

@ -79,7 +79,7 @@
entrypoint: "{{ matrix_synapse_docker_entrypoint }}"
command: "{{ matrix_synapse_docker_command }}"
user: "{{ synapse_user.uid }}:{{ synapse_user.group }}"
groups: "{{ matrix_synapse_appservice_groups }}"
groups: "{{ appservice_group.results | map(attribute='gid') }}"
volumes: "{{ matrix_synapse_docker_volumes }}"
restart_policy: unless-stopped
state: started