mirror of
https://gh.con.sh/https://github.com/plexinc/pms-docker
synced 2024-09-20 06:45:31 +00:00
Added PLEX_CLAIM_FILE env
This commit is contained in:
parent
94725e4785
commit
2677bb69e3
|
@ -100,6 +100,9 @@ fi
|
|||
|
||||
# Get server token and only turn claim token into server token if we have former but not latter.
|
||||
token="$(getPref "PlexOnlineToken")"
|
||||
if [ -z "${PLEX_CLAIM}" ] && [ -f "${PLEX_CLAIM_FILE}" ]; then
|
||||
PLEX_CLAIM=$(cat ${PLEX_CLAIM_FILE})
|
||||
fi
|
||||
if [ ! -z "${PLEX_CLAIM}" ] && [ -z "${token}" ]; then
|
||||
echo "Attempting to obtain server token from claim token"
|
||||
loginInfo="$(curl -X POST \
|
||||
|
|
Loading…
Reference in New Issue
Block a user