mirror of
https://github.com/mrworf/plexupdate.git
synced 2025-07-11 07:46:07 -07:00
Add X-Plex-Token to correct Issue #81
This commit is contained in:
parent
482f1d2c5a
commit
dabf3af2c1
1 changed files with 1 additions and 1 deletions
|
@ -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 '<MediaContainer size="0">' ; then
|
||||
if ! wget --no-check-certificate -q -O - https://${PLEXSERVER}:32400/status/sessions?X-Plex-Token=${TOKEN} | grep -q '<MediaContainer size="0">' ; then
|
||||
echo "Server ${PLEXSERVER} is currently being used by one or more users, skipping installation. Please run again later"
|
||||
cronexit 6
|
||||
fi
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue