Skip to content

Commit

Permalink
Signal that the proxy is available
Browse files Browse the repository at this point in the history
  • Loading branch information
okeneo committed Mar 3, 2024
1 parent 876ce8e commit 8d6493a
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion certbot/certify-init.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,11 @@

set -e

until curl -s -I http://nginx:80; do
check_nginx() {
ping -c 1 nginx
}

until check_nginx; do
echo "Waiting for proxy..."
sleep 5s & wait ${!}
done
Expand Down

0 comments on commit 8d6493a

Please sign in to comment.