bea3c34488a0964e6114e52ad3dfc92ddb763391
[sdc.git] /
1 #!/bin/bash
2 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")
3 if [[ "$health_check_http_code" -eq 200 ]]; then
4   exit 0
5 else
6   echo "Health check http status: $health_check_http_code"
7   exit 1
8 fi