Skip to content

Commit

Permalink
Update pgscan.sh
Browse files Browse the repository at this point in the history
  • Loading branch information
MrDoobPG authored and MrDoobPG committed Nov 21, 2019
1 parent 17621f2 commit f6399af
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions menu/pgscan/pgscan.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -169,7 +169,6 @@ EOF
# FIRST QUESTION
question1() {
userstatus
tokenstatus
deploycheck
tee <<-EOF
Expand Down

0 comments on commit f6399af

Please sign in to comment.