D3V-Server/docker/rootfs/usr/bin/check-health

12 lines
164 B
Text
Raw Normal View History

2026-03-07 13:49:44 +00:00
#!/bin/bash
OK=$(curl --silent http://127.0.0.1:81/api/ | jq --raw-output '.status')
if [ "$OK" == "OK" ]; then
echo "OK"
exit 0
else
echo "NOT OK"
exit 1
fi