10 lines
200 B
Bash
10 lines
200 B
Bash
|
#!/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
|