From f6399af5fdc269989c03dbe1bd5ca049dbe442ab Mon Sep 17 00:00:00 2001 From: MrDoobPG <46342172+MrDoobPG@users.noreply.github.com> Date: Thu, 21 Nov 2019 02:15:55 +0100 Subject: [PATCH] Update pgscan.sh --- menu/pgscan/pgscan.sh | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/menu/pgscan/pgscan.sh b/menu/pgscan/pgscan.sh index 73fdf615..1f062178 100644 --- a/menu/pgscan/pgscan.sh +++ b/menu/pgscan/pgscan.sh @@ -24,7 +24,7 @@ userstatus() { tokenstatus() { ptokendep=$(cat /var/plexguide/plex.token) if [ "$ptokendep" != "" ]; then - PGSELFTEST=$(curl -LI "http://localhost:32400/system?X-Plex-Token=$(cat /var/plexguide/plex.token)" -o /dev/null -w '%{http_code}\n' -s) + PGSELFTEST=$(curl -LI "http://localhost:32400/system?X-Plex-Token=$(/opt/plex_autoscan/config/config.json | jq .PLEX_TOKEN | sed 's/"//g' )" -o /dev/null -w '%{http_code}\n' -s)) if [[ $PGSELFTEST -ge 200 && $PGSELFTEST -le 299 ]]; then pstatus="✅ DEPLOYED" else @@ -169,7 +169,6 @@ EOF # FIRST QUESTION question1() { userstatus -tokenstatus deploycheck tee <<-EOF