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