Skip to content

Commit

Permalink
Update ping.sh to succeed on 302 (#65)
Browse files Browse the repository at this point in the history
  • Loading branch information
joshdentremont authored Sep 16, 2024
1 parent d0e2616 commit 224c1f7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/ping.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 224c1f7

Please sign in to comment.