mirror of
https://github.com/MHA-Team/PTS-Team.git
synced 2026-03-18 06:52:14 +00:00
Update plexpatrol.sh
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user