bigbluebutton-Github/labs/docker/kurento/healthchecker.sh
2019-02-01 17:29:27 -03:00

4 lines
207 B
Bash
Executable File

#!/bin/bash
[[ "$(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