feat: rebrand WinningHunter as AdSeeQ
This commit is contained in:
@@ -3,12 +3,12 @@ set -eu
|
||||
|
||||
app_url="${NEXT_PUBLIC_APP_URL:?NEXT_PUBLIC_APP_URL is required}"
|
||||
if curl --fail --silent --show-error --max-time 10 "${app_url%/}/api/health" >/dev/null; then
|
||||
echo "WinningHunter healthcheck OK"
|
||||
echo "AdSeeQ healthcheck OK"
|
||||
exit 0
|
||||
fi
|
||||
|
||||
if [ -n "${ALERT_WEBHOOK_URL:-}" ]; then
|
||||
curl --fail --silent --show-error --max-time 10 -X POST -H 'content-type: application/json' --data '{"text":"WinningHunter healthcheck failed"}' "$ALERT_WEBHOOK_URL" >/dev/null || true
|
||||
curl --fail --silent --show-error --max-time 10 -X POST -H 'content-type: application/json' --data '{"text":"AdSeeQ healthcheck failed"}' "$ALERT_WEBHOOK_URL" >/dev/null || true
|
||||
fi
|
||||
echo "WinningHunter healthcheck FAILED" >&2
|
||||
echo "AdSeeQ healthcheck FAILED" >&2
|
||||
exit 1
|
||||
|
||||
Reference in New Issue
Block a user