bigbluebutton-Github/labs/docker/kurento/healthchecker.sh

4 lines
207 B
Bash
Raw Normal View History

2018-06-15 21:21:03 +08:00
#!/bin/bash
2019-02-02 04:29:27 +08:00
[[ "$(curl -w '%{http_code}' -N -H "Connection: Upgrade" -H "Upgrade: websocket" -H "Host: 127.0.0.1:$PORT" -H "Origin: 127.0.0.1" http://127.0.0.1:$PORT/kurento)" == 500 ]] && exit 0 || exit 1