From dabf3af2c1bc9a32b3b779297e4611d1f6d4462c Mon Sep 17 00:00:00 2001 From: Jon Shaulis Date: Wed, 24 Aug 2016 21:18:40 -0400 Subject: [PATCH] Add X-Plex-Token to correct Issue #81 --- plexupdate.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plexupdate.sh b/plexupdate.sh index ce73b85..8063bd9 100755 --- a/plexupdate.sh +++ b/plexupdate.sh @@ -495,7 +495,7 @@ fi if [ ! -z "${PLEXSERVER}" -a "${AUTOINSTALL}" = "yes" ]; then # Check if server is in-use before continuing (thanks @AltonV, @hakong and @sufr3ak)... - if ! wget --no-check-certificate -q -O - https://${PLEXSERVER}:32400/status/sessions | grep -q '' ; then + if ! wget --no-check-certificate -q -O - https://${PLEXSERVER}:32400/status/sessions?X-Plex-Token=${TOKEN} | grep -q '' ; then echo "Server ${PLEXSERVER} is currently being used by one or more users, skipping installation. Please run again later" cronexit 6 fi