From 8eed8216b46ab80bd0b3eb642ff9e2fd57604757 Mon Sep 17 00:00:00 2001 From: Patrick Double Date: Tue, 30 Jun 2015 11:48:46 -0500 Subject: [PATCH 1/2] Fix shell script syntax errors --- init/20_update_plex.sh | 2 +- init/90_uid_gid_fix.sh | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/init/20_update_plex.sh b/init/20_update_plex.sh index f68798b..e0d7749 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 [ "$PLEXPASS" -eq "1" ]; then +if [ "$PLEXPASS" == "1" ]; then VERSION=$(curl https://raw.githubusercontent.com/linuxserver/misc-files/master/plex-version/plexpass) else VERSION=$(curl https://raw.githubusercontent.com/linuxserver/misc-files/master/plex-version/public) diff --git a/init/90_uid_gid_fix.sh b/init/90_uid_gid_fix.sh index a5a47e3..1bd486e 100644 --- a/init/90_uid_gid_fix.sh +++ b/init/90_uid_gid_fix.sh @@ -1,7 +1,7 @@ #!/bin/bash -if [ ! "$(id -u abc)" -eq "$PUID" ]; then usermod -u "$PUID" abc ; fi -if [ ! "$(id -g abc)" -eq "$PGID" ]; then groupmod -o -g "$PGID" abc ; fi +if [ "$(id -u abc)" != "$PUID" ]; then usermod -u "$PUID" abc ; fi +if [ "$(id -g abc)" != "$PGID" ]; then groupmod -o -g "$PGID" abc ; fi echo " ----------------------------------- @@ -12,4 +12,4 @@ Plex gid: $(id -g abc) ----------------------------------- Plex will now continue to boot. " -sleep 2 \ No newline at end of file +sleep 2 From a3ea1a90fa962f253cdc3a4e4725653c9a9b38ea Mon Sep 17 00:00:00 2001 From: Patrick Double Date: Tue, 30 Jun 2015 11:59:59 -0500 Subject: [PATCH 2/2] Install dbus --- Dockerfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index 63d7831..a9b2a6f 100644 --- a/Dockerfile +++ b/Dockerfile @@ -12,7 +12,7 @@ CMD ["/sbin/my_init"] # Install Plex RUN apt-get -q update && \ VERSION=$(curl https://raw.githubusercontent.com/linuxserver/misc-files/master/plex-version/public) && \ -apt-get install -qy gdebi-core wget && \ +apt-get install -qy dbus gdebi-core wget && \ wget -P /tmp "http://downloads.plexapp.com/plex-media-server/$VERSION/plexmediaserver_${VERSION}_amd64.deb" && \ gdebi -n /tmp/plexmediaserver_${VERSION}_amd64.deb && \ rm -f /tmp/plexmediaserver_${VERSION}_amd64.deb && \