From f5524543acf3d8d576693869541367e55d67e5c9 Mon Sep 17 00:00:00 2001 From: "Kevin Veen-Birkenbach [aka. Frantz]" Date: Wed, 16 Mar 2022 13:18:31 +0100 Subject: [PATCH] changed container name --- roles/docker-mailu/templates/deploy-letsencrypt-mailu.sh.j2 | 2 +- roles/docker-mailu/vars/main.yml | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) create mode 100644 roles/docker-mailu/vars/main.yml diff --git a/roles/docker-mailu/templates/deploy-letsencrypt-mailu.sh.j2 b/roles/docker-mailu/templates/deploy-letsencrypt-mailu.sh.j2 index 59cce521..34c1ce08 100644 --- a/roles/docker-mailu/templates/deploy-letsencrypt-mailu.sh.j2 +++ b/roles/docker-mailu/templates/deploy-letsencrypt-mailu.sh.j2 @@ -1,4 +1,4 @@ #!/bin/sh cp /etc/letsencrypt/live/{{domain}}/privkey.pem /etc/mailu/certs/key.pem || exit 1 cp /etc/letsencrypt/live/{{domain}}/fullchain.pem /etc/mailu/certs/cert.pem || exit 1 -docker exec mailu_front_1 nginx -s reload +docker exec {{mailu_front_container_name}} nginx -s reload diff --git a/roles/docker-mailu/vars/main.yml b/roles/docker-mailu/vars/main.yml new file mode 100644 index 00000000..1989bbe9 --- /dev/null +++ b/roles/docker-mailu/vars/main.yml @@ -0,0 +1 @@ +mailu_front_container_name: "mailu-front-1"