bigbluebutton-Github/labs/docker/kurento/healthchecker.sh
2018-08-24 17:15:47 -03:00

4 lines
205 B
Bash
Executable File

#!/bin/bash
[[ "$(curl -w '%{http_code}' -N -H "Connection: Upgrade" -H "Upgrade: websocket" -H "Host: 127.0.0.1:8888" -H "Origin: 127.0.0.1" http://127.0.0.1:8888/kurento)" == 500 ]] && exit 0 || exit 1