summaryrefslogtreecommitdiffstats
path: root/catalog-be/sdc-backend/chef-repo/cookbooks/sdc-catalog-be/templates/default/ready-probe.sh.erb
blob: 26f72664b78dbea40985250ff5708251686fc042 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
#!/bin/bash

set -x

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 500 ]]; then
   exit 200
else
   exit $health_Check_http_code
fi