Add curl script to simplify http healthchecks

This commit is contained in:
IamTheFij 2023-04-18 13:12:11 -07:00
parent 7d87c3d036
commit 99b8723abc
1 changed files with 6 additions and 0 deletions

6
scripts/curl_ok.sh Executable file
View File

@ -0,0 +1,6 @@
#! /bin/sh
# Used for a basic HTTP health check
# Avoids output from non-errors and will fail if the HTTP response is unsuccessful
curl --silent --show-error --fail -o /dev/null "$@"