We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 56e12ad commit 4e118adCopy full SHA for 4e118ad
1 file changed
haproxy/docker-entrypoint.sh
@@ -1,8 +1,12 @@
1
#!/bin/bash
2
3
#fix variable _name to not have /
4
-export FRONTEND_NAME="${FRONTEND_NAME//\//}"
5
-export BACKEND_NAME="${BACKEND_NAME//\//}"
+if [ -n "$FRONTEND_NAME" ]; then
+ export FRONTEND_NAME="${FRONTEND_NAME//\//}"
6
+fi
7
+if [ -n "$BACKEND_NAME" ]; then
8
+ export BACKEND_NAME="${BACKEND_NAME//\//}"
9
10
11
# haproxy not directly configured within /usr/local/etc/haproxy/haproxy.cfg
12
if ! test -e /usr/local/etc/haproxy/haproxy.cfg; then
0 commit comments