From 08b29e9b926f36a89b10402fe96a8432a9f85705 Mon Sep 17 00:00:00 2001 From: Slavi Pantaleev Date: Fri, 18 Oct 2024 21:14:04 +0300 Subject: [PATCH] Replace some docker references with {{ devture_systemd_docker_base_host_command_docker }} --- roles/custom/matrix-dendrite/templates/bin/create-account.j2 | 4 ++-- .../matrix-synapse/templates/synapse/bin/register-user.j2 | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/roles/custom/matrix-dendrite/templates/bin/create-account.j2 b/roles/custom/matrix-dendrite/templates/bin/create-account.j2 index edfa521b9..11509f4f2 100644 --- a/roles/custom/matrix-dendrite/templates/bin/create-account.j2 +++ b/roles/custom/matrix-dendrite/templates/bin/create-account.j2 @@ -11,7 +11,7 @@ password=$2 admin=$3 if [ "$admin" -eq "1" ]; then - docker exec matrix-dendrite create-account -config /data/dendrite.yaml -username "$user" -password "$password" -admin -url http://localhost:{{ matrix_dendrite_http_bind_port }} + {{ devture_systemd_docker_base_host_command_docker }} exec matrix-dendrite create-account -config /data/dendrite.yaml -username "$user" -password "$password" -admin -url http://localhost:{{ matrix_dendrite_http_bind_port }} else - docker exec matrix-dendrite create-account -config /data/dendrite.yaml -username "$user" -password "$password" -url http://localhost:{{ matrix_dendrite_http_bind_port }} + {{ devture_systemd_docker_base_host_command_docker }} exec matrix-dendrite create-account -config /data/dendrite.yaml -username "$user" -password "$password" -url http://localhost:{{ matrix_dendrite_http_bind_port }} fi diff --git a/roles/custom/matrix-synapse/templates/synapse/bin/register-user.j2 b/roles/custom/matrix-synapse/templates/synapse/bin/register-user.j2 index 228cc9eaa..9b80d397b 100644 --- a/roles/custom/matrix-synapse/templates/synapse/bin/register-user.j2 +++ b/roles/custom/matrix-synapse/templates/synapse/bin/register-user.j2 @@ -11,7 +11,7 @@ password=$2 admin=$3 if [ "$admin" -eq "1" ]; then - docker exec matrix-synapse register_new_matrix_user -u "$user" -p "$password" -c /data/homeserver.yaml --admin http://localhost:{{ matrix_synapse_container_client_api_port }} + {{ devture_systemd_docker_base_host_command_docker }} exec matrix-synapse register_new_matrix_user -u "$user" -p "$password" -c /data/homeserver.yaml --admin http://localhost:{{ matrix_synapse_container_client_api_port }} else - docker exec matrix-synapse register_new_matrix_user -u "$user" -p "$password" -c /data/homeserver.yaml --no-admin http://localhost:{{ matrix_synapse_container_client_api_port }} + {{ devture_systemd_docker_base_host_command_docker }} exec matrix-synapse register_new_matrix_user -u "$user" -p "$password" -c /data/homeserver.yaml --no-admin http://localhost:{{ matrix_synapse_container_client_api_port }} fi