summaryrefslogtreecommitdiffstats
path: root/sdc-os-chef/scripts/docker_health.sh
diff options
context:
space:
mode:
Diffstat (limited to 'sdc-os-chef/scripts/docker_health.sh')
-rw-r--r--sdc-os-chef/scripts/docker_health.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/sdc-os-chef/scripts/docker_health.sh b/sdc-os-chef/scripts/docker_health.sh
index 832b25a237..1db5282446 100644
--- a/sdc-os-chef/scripts/docker_health.sh
+++ b/sdc-os-chef/scripts/docker_health.sh
@@ -14,7 +14,7 @@ curl http://localhost:8181/sdc1/rest/healthCheck
echo ""
echo ""
res=`curl -s -X GET -H "Accept: application/json" -H "Content-Type: application/json" -H "USER_ID: jh0003" "http://localhost:8080/sdc2/rest/v1/user/demo" | wc -l`
-if [[ ${res} != 0 ]]
+if [[ ! ${res} -eq 0 ]]
then
echo "Error [${res}] while user existance check"
exit ${res}