Skip to content

Commit

Permalink
Update plexpatrol.sh
Browse files Browse the repository at this point in the history
  • Loading branch information
MrDoobPG authored and MrDoobPG committed Dec 8, 2019
1 parent 66f24c3 commit c8ce95e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion menu/plexpatrol/plexpatrol.sh
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ token() {
if [[ ! -f "/opt/appdata/plexpatrol/settings.ini" ]]; then
pstatus="❌ DEPLOYED BUT PAPTROL CONFIG MISSING";
else
PGSELFTEST=$(curl -LI "http://localhost:32400/system?X-Plex-Token=$(cat /opt/appdata/plexpatrol/settings.ini | grep "SERVER_TOKEN" | awk '{print $3}')" -o /dev/null -w '%{http_code}\n' -s)
PGSELFTEST=$(curl -LI "http://$(hostname -I | awk '{print $1}'):32400/system?X-Plex-Token=$(cat /opt/appdata/plexpatrol/settings.ini | grep "SERVER_TOKEN" | awk '{print $3}')" -o /dev/null -w '%{http_code}\n' -s)
if [[ $PGSELFTEST -ge 200 && $PGSELFTEST -le 299 ]]; then pstatus="✅ DEPLOYED"
else pstatus="❌ DEPLOYED BUT PATROL TOKEN FAILED"; fi
fi
Expand Down

0 comments on commit c8ce95e

Please sign in to comment.