From 3b0da739417cc7bda0bbf21670943f3053f7b500 Mon Sep 17 00:00:00 2001 From: Stian Buch Larsen Date: Tue, 26 May 2015 12:26:09 +0200 Subject: [PATCH] Smal fix to readme and hopefully better check for plexpass --- README.md | 4 +++- init/20_update_plex.sh | 2 +- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index dc0bdd7..4c5d267 100644 --- a/README.md +++ b/README.md @@ -20,4 +20,6 @@ Plex organizes video, music and photos from personal media libraries and streams ## Sample create command: -> *docker create --name= --net=host -e PUID= -e PGID -v :/config -v :/data/tvshows -v :/data/film linuxserver/plex* \ No newline at end of file +``` +docker create --name= --net=host -e PUID= -e PGID= -v :/config -v :/data/tvshows -v :/data/film linuxserver/plex +``` \ No newline at end of file diff --git a/init/20_update_plex.sh b/init/20_update_plex.sh index cd1c7be..f6c44be 100644 --- a/init/20_update_plex.sh +++ b/init/20_update_plex.sh @@ -1,7 +1,7 @@ #!/bin/bash export DEBIAN_FRONTEND=noninteractive INSTALLED=`dpkg-query -W -f='${Version}' plexmediaserver` -if [ -z "$PLEXPASS" ]; then +if [ "$PLEXPASS" -eq "1" ]; then VERSION=$(curl https://raw.githubusercontent.com/linuxserver/misc-files/master/plex-version/public) else VERSION=$(curl https://raw.githubusercontent.com/linuxserver/misc-files/master/plex-version/plexpass)