feature: default value for peer name

This commit is contained in:
RouxAntoine 2023-07-26 00:01:12 +02:00
parent 58cd131a32
commit 641e7df56b
Signed by: antoine
GPG Key ID: 098FB66FC0475E70

View File

@ -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 "$@"