keycloak-scim/testsuite/performance/infinispan/infinispan-healthcheck.sh

15 lines
258 B
Bash
Raw Normal View History

2017-07-13 18:25:26 +00:00
#!/bin/bash
#$JBOSS_HOME/bin/jboss-cli.sh -c ":read-attribute(name=server-state)" | grep -q "running"
. get-ips.sh
CODE=`curl -s -o /dev/null -w "%{http_code}" http://$PUBLIC_IP:9990/console/index.html`
if [ "$CODE" -eq "200" ]; then
exit 0
fi
exit 1