From 8d6493aebc33382364e5b49ffe74bccf22f2d2f0 Mon Sep 17 00:00:00 2001 From: Oghenetega Okene Date: Sun, 3 Mar 2024 00:46:10 -0600 Subject: [PATCH] Signal that the proxy is available --- certbot/certify-init.sh | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/certbot/certify-init.sh b/certbot/certify-init.sh index ddf559b..bf537cc 100644 --- a/certbot/certify-init.sh +++ b/certbot/certify-init.sh @@ -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