Added posibility to set own value for plex
This commit is contained in:
parent
d4b9cf0409
commit
849e34dbf3
1 changed files with 7 additions and 3 deletions
|
|
@ -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…
Add table
Add a link
Reference in a new issue