blob: d7439008923908a11f9a1f60a6fb4d797fa8bdad (
plain)
1
2
3
4
5
6
7
8
|
#!/bin/bash
health_Check_http_code=$(curl --max-time 5 -o /dev/null -w '%{http_code}' http://127.0.0.1:8181/sdc1/rest/healthCheck)
if [[ "$health_Check_http_code" -eq 500 ]]; then
exit 200
else
exit $health_Check_http_code
fi
|