From 224c1f7feb7f95f6866aa49995dd7b4f157d125b Mon Sep 17 00:00:00 2001 From: joshdentremont Date: Mon, 16 Sep 2024 09:50:51 -0300 Subject: [PATCH] Update ping.sh to succeed on 302 (#65) --- tests/ping.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/ping.sh b/tests/ping.sh index 07d91af..cc7059b 100755 --- a/tests/ping.sh +++ b/tests/ping.sh @@ -4,7 +4,7 @@ COUNTER=0 while true; do HTTP_STATUS=$(curl -w '%{http_code}' -o /dev/null -s https://islandora.dev/) echo "Ping returned http status ${HTTP_STATUS}, exit code $?" - if [ "${HTTP_STATUS}" -eq 200 ]; then + if [ "${HTTP_STATUS}" -eq 200 ] || [ "${HTTP_STATUS}" -eq 302 ]; then echo "We're live 🚀" exit 0 fi