Skip to content

Commit

Permalink
Adjusts script
Browse files Browse the repository at this point in the history
  • Loading branch information
benbierens committed Nov 21, 2023
1 parent 15affa2 commit 729f804
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion content/docker-entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ if [[ -n "${NAT_PUBLIC_IP_AUTO}" ]]; then
WAIT=60
SECONDS=0
SLEEP=5
while (( SECONDS < WAIT )); do
while (( $SECONDS < $WAIT )); do
PUBLIC_IP_ARGS=--nat=extip:$(curl -s -f -m 5 "${NAT_PUBLIC_IP_AUTO}")
# Check if exit code is 0 and returned value is not empty
[[ $? -eq 0 && -n "${PUBLIC_IP_ARGS}" ]] && { echo "Public: Set extip: ${PUBLIC_IP_ARGS}"; break; } || { echo "Can't get Public IP - Retry in $SLEEP seconds / $((WAIT - SECONDS))"; }
Expand Down

0 comments on commit 729f804

Please sign in to comment.