From b2086f51401564fecba8654041d9fb85d699f40b Mon Sep 17 00:00:00 2001 From: lonix Date: Tue, 14 Jul 2015 12:21:11 +0200 Subject: [PATCH] Updated to new version-fetch url, now for public consumption. --- Dockerfile | 2 +- init/20_update_plex.sh | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/Dockerfile b/Dockerfile index 7c749fb..df65950 100644 --- a/Dockerfile +++ b/Dockerfile @@ -11,7 +11,7 @@ CMD ["/sbin/my_init"] # Install Plex RUN apt-get -q update && \ -VERSION=$(curl -s https://fanart.tv/webservice/plex/plex.php | grep "version" | cut -d '"' -f 4) && \ +VERSION=$(curl -s http://tools.linuxserver.io/latest-plex.json| grep "version" | cut -d '"' -f 4) && \ apt-get install -qy dbus gdebi-core avahi-daemon wget && \ wget -P /tmp "http://downloads.plexapp.com/plex-media-server/$VERSION/plexmediaserver_${VERSION}_amd64.deb" && \ gdebi -n /tmp/plexmediaserver_${VERSION}_amd64.deb && \ diff --git a/init/20_update_plex.sh b/init/20_update_plex.sh index 443bc8e..2f316b7 100644 --- a/init/20_update_plex.sh +++ b/init/20_update_plex.sh @@ -4,10 +4,10 @@ INSTALLED=`dpkg-query -W -f='${Version}' plexmediaserver` 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) + VERSION=$(curl -s http://tools.linuxserver.io/latest-plexpass.json | grep "version" | cut -d '"' -f 4) echo "Useing version: $VERSION from Plexpass latest" else - VERSION=$(curl -s https://fanart.tv/webservice/plex/plex.php | grep "version" | cut -d '"' -f 4) + VERSION=$(curl -s http://tools.linuxserver.io/latest-plex.json| grep "version" | cut -d '"' -f 4) echo "Useing version: $VERSION from Public latest" fi if [ "$VERSION" == "$INSTALLED" ]; then