radarr/healthcheck.sh

10 lines
200 B
Bash
Raw Normal View History

2021-07-25 19:39:25 +00:00
#!/bin/bash
curl ${RADARR_URL}/api/v3/health?apiKey=${APIKEY} 2>&1 | grep -q error
if [ "$?" -eq 1 ]
then
echo "No errors."
exit 0
else
echo "Errors occurred. Check the web interface."
exit 1
fi