Added posibility to set own value for plex

pull/3/head
lonix 10 years ago
parent d4b9cf0409
commit 849e34dbf3

@ -1,10 +1,14 @@
#!/bin/bash #!/bin/bash
export DEBIAN_FRONTEND=noninteractive export DEBIAN_FRONTEND=noninteractive
INSTALLED=`dpkg-query -W -f='${Version}' plexmediaserver` INSTALLED=`dpkg-query -W -f='${Version}' plexmediaserver`
if [ "$PLEXPASS" == "1" ]; then if [ $VERSION ]; then
VERSION=$(curl https://raw.githubusercontent.com/linuxserver/misc-files/master/plex-version/plexpass) 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 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 fi
if [ "$VERSION" == "$INSTALLED" ]; then if [ "$VERSION" == "$INSTALLED" ]; then
exit 0; exit 0;

Loading…
Cancel
Save