From 641e7df56bf9840180ed8a617af5a9dd42be1dee Mon Sep 17 00:00:00 2001 From: RouxAntoine Date: Wed, 26 Jul 2023 00:01:12 +0200 Subject: [PATCH] feature: default value for peer name --- init.sh | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/init.sh b/init.sh index 6afe4a8..f6ba60a 100644 --- a/init.sh +++ b/init.sh @@ -1,5 +1,9 @@ #!/bin/sh +PEER_0_NAME=${PEER_0_NAME:-peer-0} +PEER_1_NAME=${PEER_1_NAME:-peer-1} +PEER_2_NAME=${PEER_2_NAME:-peer-2} + envsubst < /etc/haproxy/haproxy.template.cfg > /etc/haproxy/haproxy.cfg exec "$@"