mirror of
https://github.com/linuxserver/docker-plex.git
synced 2026-04-13 00:04:33 +08:00
Added posibility to set own value for plex
This commit is contained in:
parent
d4b9cf0409
commit
849e34dbf3
@ -1,10 +1,14 @@
|
||||
#!/bin/bash
|
||||
export DEBIAN_FRONTEND=noninteractive
|
||||
INSTALLED=`dpkg-query -W -f='${Version}' plexmediaserver`
|
||||
if [ "$PLEXPASS" == "1" ]; then
|
||||
VERSION=$(curl https://raw.githubusercontent.com/linuxserver/misc-files/master/plex-version/plexpass)
|
||||
if [ $VERSION ]; then
|
||||
echo "Useing version: $VERSION from Manual"
|
||||
elif [ "$PLEXPASS" == "1" ]; then
|
||||
VERSION=$(curl -s https://fanart.tv/webservice/plex/plex.php?v=plexpass | grep "version" | cut -d '"' -f 4)
|
||||
echo "Useing version: $VERSION from Plexpass latest"
|
||||
else
|
||||
VERSION=$(curl https://raw.githubusercontent.com/linuxserver/misc-files/master/plex-version/public)
|
||||
VERSION=$(curl -s https://fanart.tv/webservice/plex/plex.php | grep "version" | cut -d '"' -f 4)
|
||||
echo "Useing version: $VERSION from Public latest"
|
||||
fi
|
||||
if [ "$VERSION" == "$INSTALLED" ]; then
|
||||
exit 0;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user