mirror of
https://github.com/linuxserver/docker-plex.git
synced 2026-02-19 20:03:03 +08:00
Updated to new version-fetch url, now for public consumption.
This commit is contained in:
parent
7c022ff2e8
commit
b2086f5140
@ -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 && \
|
||||
|
||||
@ -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
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user