Skip to content

Commit 2088a68

Browse files
committed
fix: properly export UNICAST_PEERS variable by separating assignment and export
1 parent 8494b91 commit 2088a68

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

docker-entrypoint.sh

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,8 @@ if [ -n "$TZ" ]; then
88
fi
99

1010
# Format the UNICAST_PEERS for proper indentation
11-
export UNICAST_PEERS=$(echo "$UNICAST_PEERS" | tr ',' '\n' | sed 's/^[[:space:]]*//g' | sed 's/[[:space:]]*$//g' | sed 's/^/ /')
11+
UNICAST_PEERS="$(echo "$UNICAST_PEERS" | tr ',' '\n' | sed 's/^[[:space:]]*//g' | sed 's/[[:space:]]*$//g' | sed 's/^/ /')"
12+
export UNICAST_PEERS
1213

1314
# Generate keepalived configuration from template
1415
envsubst < /conf/keepalived.conf_tpl > /etc/keepalived/keepalived.conf

0 commit comments

Comments
 (0)