blob: cce9dfd2826f912d8f0c346c946cfedf307d2a6d (
plain)
1
2
3
4
5
6
7
|
#!/bin/bash
health_Check_http_code=$(curl -k --max-time 5 -o /dev/null -w '%{http_code}' -X GET --header "Accept: application/json" "<%= @protocol %>://127.0.0.1:<%= @port %>/onboarding-api/v1.0/healthcheck")
if [[ "$health_Check_http_code" -eq 200 ]]; then
exit 0
else
exit $health_Check_http_code
fi
|