Files
prowlarr/root/etc/s6-overlay/s6-rc.d/svc-prowlarr/data/check
2023-06-06 15:30:50 +01:00

10 lines
210 B
Bash
Executable File

#!/bin/bash
PORT=$(xmlstarlet sel -T -t -v /Config/Port /config/config.xml)
if [[ $(curl -sL "http://localhost:${PORT:-9696}/ping" | jq -r '.status' 2>/dev/null) = "OK" ]]; then
exit 0
else
exit 1
fi