From b34411a956c0cdc9d7232851fb8d98e81e4451d4 Mon Sep 17 00:00:00 2001 From: Stian Buch Larsen Date: Tue, 30 Jun 2015 20:48:43 +0200 Subject: [PATCH 01/23] Reimplentation of Dbus and Avahi services. --- Dockerfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index a9b2a6f..e7d5b62 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 dbus gdebi-core wget && \ +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 && \ rm -f /tmp/plexmediaserver_${VERSION}_amd64.deb && \ From b94cdb38927f5fa4b58af2fd3a35febd3ac62aea Mon Sep 17 00:00:00 2001 From: Stian Larsen Date: Fri, 3 Jul 2015 10:34:26 +0200 Subject: [PATCH 02/23] Added fix to chown files owned by plex --- init/99_chown_plex_owned_files | 3 +++ 1 file changed, 3 insertions(+) create mode 100644 init/99_chown_plex_owned_files diff --git a/init/99_chown_plex_owned_files b/init/99_chown_plex_owned_files new file mode 100644 index 0000000..ecf1d7f --- /dev/null +++ b/init/99_chown_plex_owned_files @@ -0,0 +1,3 @@ +#!/bin/bash + +find "/config/Library/Application Support" -user plex -exec chown abc:abc {} \; \ No newline at end of file From c6a63c31d6ecede20c2b6a42179b356b6ae71d3e Mon Sep 17 00:00:00 2001 From: Stian Larsen Date: Fri, 3 Jul 2015 10:48:50 +0200 Subject: [PATCH 03/23] Updated changelog --- README.md | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 5373813..efc5753 100644 --- a/README.md +++ b/README.md @@ -47,4 +47,7 @@ Part of what makes our containers work so well is by allowing you to specify you * lonix * IronicBadger -Auto-updating Ubuntu (phusion) based Plex Media Server container, brought to you by LinuxServer.io \ No newline at end of file +Auto-updating Ubuntu (phusion) based Plex Media Server container, brought to you by LinuxServer.io + +## Changelog ++ **03.07.2015:** Fixed a mistake that allowed plex to run as user plex rather than abc (99:100). Thanks to double16 for spotting this. \ No newline at end of file From 521db750371e549f2cf6515d5b923de249de4ee7 Mon Sep 17 00:00:00 2001 From: Stian Larsen Date: Fri, 3 Jul 2015 11:55:59 +0200 Subject: [PATCH 04/23] Renamed the file to include a .sh ending --- init/{99_chown_plex_owned_files => 99_chown_plex_owned_files.sh} | 0 1 file changed, 0 insertions(+), 0 deletions(-) rename init/{99_chown_plex_owned_files => 99_chown_plex_owned_files.sh} (100%) diff --git a/init/99_chown_plex_owned_files b/init/99_chown_plex_owned_files.sh similarity index 100% rename from init/99_chown_plex_owned_files rename to init/99_chown_plex_owned_files.sh From 2b2990bd8cead8060852422eb01fd07ad2e5129d Mon Sep 17 00:00:00 2001 From: lonix Date: Wed, 8 Jul 2015 13:34:31 +0200 Subject: [PATCH 05/23] Implemnting TRUE autoupdate thanks to KodeStar from fanart.tv (and now the linuxserver.io crew, welcome!) This is herby the kode update --- Dockerfile | 2 +- init/{90_uid_gid_fix.sh => 11_new_user.sh} | 0 2 files changed, 1 insertion(+), 1 deletion(-) rename init/{90_uid_gid_fix.sh => 11_new_user.sh} (100%) diff --git a/Dockerfile b/Dockerfile index e7d5b62..7c749fb 100644 --- a/Dockerfile +++ b/Dockerfile @@ -11,7 +11,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) && \ +VERSION=$(curl -s https://fanart.tv/webservice/plex/plex.php | 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/90_uid_gid_fix.sh b/init/11_new_user.sh similarity index 100% rename from init/90_uid_gid_fix.sh rename to init/11_new_user.sh From 7564be8dc4fd6d83795e502dcc1729915300ae3b Mon Sep 17 00:00:00 2001 From: Stian Buch Larsen Date: Wed, 8 Jul 2015 15:56:16 +0200 Subject: [PATCH 06/23] Update README.md --- README.md | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index efc5753..ba58d73 100644 --- a/README.md +++ b/README.md @@ -50,4 +50,5 @@ Part of what makes our containers work so well is by allowing you to specify you Auto-updating Ubuntu (phusion) based Plex Media Server container, brought to you by LinuxServer.io ## Changelog -+ **03.07.2015:** Fixed a mistake that allowed plex to run as user plex rather than abc (99:100). Thanks to double16 for spotting this. \ No newline at end of file ++ **08.07.2015:** Now Truely autoupdate. ++ **03.07.2015:** Fixed a mistake that allowed plex to run as user plex rather than abc (99:100). Thanks to double16 for spotting this. From 9649c5898e664ff7ac56fddedfcb6c8a91c4f47c Mon Sep 17 00:00:00 2001 From: Stian Buch Larsen Date: Wed, 8 Jul 2015 22:14:21 +0200 Subject: [PATCH 07/23] Allowing root as abc --- init/11_new_user.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/init/11_new_user.sh b/init/11_new_user.sh index 1bd486e..b5ac305 100644 --- a/init/11_new_user.sh +++ b/init/11_new_user.sh @@ -1,6 +1,6 @@ #!/bin/bash -if [ "$(id -u abc)" != "$PUID" ]; then usermod -u "$PUID" abc ; fi +if [ "$(id -u abc)" != "$PUID" ]; then usermod -o -u "$PUID" abc ; fi if [ "$(id -g abc)" != "$PGID" ]; then groupmod -o -g "$PGID" abc ; fi echo " From d4b9cf0409404946c66dae1b18704869b190ffa7 Mon Sep 17 00:00:00 2001 From: Stian Buch Larsen Date: Wed, 8 Jul 2015 22:36:05 +0200 Subject: [PATCH 08/23] Fix for first time startup that App Support would not exsist --- init/99_chown_plex_owned_files.sh | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/init/99_chown_plex_owned_files.sh b/init/99_chown_plex_owned_files.sh index ecf1d7f..73f8dae 100644 --- a/init/99_chown_plex_owned_files.sh +++ b/init/99_chown_plex_owned_files.sh @@ -1,3 +1,6 @@ #!/bin/bash -find "/config/Library/Application Support" -user plex -exec chown abc:abc {} \; \ No newline at end of file + +if [ -f /config/Library/Application Support]; then +find "/config/Library/Application Support" -user plex -exec chown abc:abc {} \; +fi \ No newline at end of file From 849e34dbf36814dc31604fd13e49b099d04d0c42 Mon Sep 17 00:00:00 2001 From: lonix Date: Thu, 9 Jul 2015 08:39:16 +0200 Subject: [PATCH 09/23] Added posibility to set own value for plex --- init/20_update_plex.sh | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/init/20_update_plex.sh b/init/20_update_plex.sh index e0d7749..443bc8e 100644 --- a/init/20_update_plex.sh +++ b/init/20_update_plex.sh @@ -1,10 +1,14 @@ #!/bin/bash export DEBIAN_FRONTEND=noninteractive INSTALLED=`dpkg-query -W -f='${Version}' plexmediaserver` -if [ "$PLEXPASS" == "1" ]; then - VERSION=$(curl https://raw.githubusercontent.com/linuxserver/misc-files/master/plex-version/plexpass) +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) + echo "Useing version: $VERSION from Plexpass latest" 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 if [ "$VERSION" == "$INSTALLED" ]; then exit 0; From 8ee4c576d48e86e796cea82953ad66d701428e19 Mon Sep 17 00:00:00 2001 From: lonix Date: Thu, 9 Jul 2015 08:43:26 +0200 Subject: [PATCH 10/23] Updated Readme to match new feature --- README.md | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/README.md b/README.md index ba58d73..166bf75 100644 --- a/README.md +++ b/README.md @@ -15,6 +15,7 @@ docker create \ --name=plex \ --net=host \ -e PLEXPASS=1 \ + -e VERSION="0.9.12.4.1192-9a47d21" -e PUID= -e PGID= \ -v :/config \ -v :/data/tvshows \ @@ -28,6 +29,7 @@ docker create \ * `-v /config` - Plex library location. *This can grow very large, 50gb+ is likely for a large collection.* * `-v /data/xyz` - Media goes here. Add as many as needed e.g. `/data/movies`, `/data/tv`, etc. * `-e PLEXPASS=1` - Set to 1 if you have a Plex Pass, if not don't specify it. +* `-e VERSION" - Set this to a full version number if you want to use a spesific version e.g. "0.9.12.4.1192-9a47d21" * `-e PGID` for for GroupID - see below for explanation * `-e PUID` for for UserID - see below for explanation @@ -50,5 +52,11 @@ Part of what makes our containers work so well is by allowing you to specify you Auto-updating Ubuntu (phusion) based Plex Media Server container, brought to you by LinuxServer.io ## Changelog +<<<<<<< 849e34dbf36814dc31604fd13e49b099d04d0c42 + **08.07.2015:** Now Truely autoupdate. + **03.07.2015:** Fixed a mistake that allowed plex to run as user plex rather than abc (99:100). Thanks to double16 for spotting this. +======= ++ **09.07.2015:** Now with ability to pick static versionnumber. ++ **08.07.2015:** Now with autoupdates. (Hosted by fanart.tv) ++ **03.07.2015:** Fixed a mistake that allowed plex to run as user plex rather than abc (99:100). Thanks to double16 for spotting this. +>>>>>>> d028f2ddbbb31a069fea745b96832488abceeb84 From 7c022ff2e82e2cbe51c3d00a8d44d851fbf0e35c Mon Sep 17 00:00:00 2001 From: lonix Date: Thu, 9 Jul 2015 08:51:06 +0200 Subject: [PATCH 11/23] Fixed formating in docs --- README.md | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/README.md b/README.md index 166bf75..a193cb6 100644 --- a/README.md +++ b/README.md @@ -15,7 +15,7 @@ docker create \ --name=plex \ --net=host \ -e PLEXPASS=1 \ - -e VERSION="0.9.12.4.1192-9a47d21" + -e VERSION="0.9.12.4.1192-9a47d21" \ -e PUID= -e PGID= \ -v :/config \ -v :/data/tvshows \ @@ -29,7 +29,7 @@ docker create \ * `-v /config` - Plex library location. *This can grow very large, 50gb+ is likely for a large collection.* * `-v /data/xyz` - Media goes here. Add as many as needed e.g. `/data/movies`, `/data/tv`, etc. * `-e PLEXPASS=1` - Set to 1 if you have a Plex Pass, if not don't specify it. -* `-e VERSION" - Set this to a full version number if you want to use a spesific version e.g. "0.9.12.4.1192-9a47d21" +* `-e VERSION` - Set this to a full version number if you want to use a spesific version e.g. "0.9.12.4.1192-9a47d21" * `-e PGID` for for GroupID - see below for explanation * `-e PUID` for for UserID - see below for explanation @@ -52,11 +52,6 @@ Part of what makes our containers work so well is by allowing you to specify you Auto-updating Ubuntu (phusion) based Plex Media Server container, brought to you by LinuxServer.io ## Changelog -<<<<<<< 849e34dbf36814dc31604fd13e49b099d04d0c42 -+ **08.07.2015:** Now Truely autoupdate. -+ **03.07.2015:** Fixed a mistake that allowed plex to run as user plex rather than abc (99:100). Thanks to double16 for spotting this. -======= + **09.07.2015:** Now with ability to pick static versionnumber. + **08.07.2015:** Now with autoupdates. (Hosted by fanart.tv) + **03.07.2015:** Fixed a mistake that allowed plex to run as user plex rather than abc (99:100). Thanks to double16 for spotting this. ->>>>>>> d028f2ddbbb31a069fea745b96832488abceeb84 From b2086f51401564fecba8654041d9fb85d699f40b Mon Sep 17 00:00:00 2001 From: lonix Date: Tue, 14 Jul 2015 12:21:11 +0200 Subject: [PATCH 12/23] 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 From ab2a1b42dc5b8d75f27be83affa28dc2f0ef23c9 Mon Sep 17 00:00:00 2001 From: ljm42 Date: Fri, 17 Jul 2015 22:14:49 -0700 Subject: [PATCH 13/23] Update 99_chown_plex_owned_files.sh * Fixes conditional in "if" statement * searches for files/groups not owned by "abc" * works on symbolic links (chown -h) --- init/99_chown_plex_owned_files.sh | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/init/99_chown_plex_owned_files.sh b/init/99_chown_plex_owned_files.sh index 73f8dae..03c46d3 100644 --- a/init/99_chown_plex_owned_files.sh +++ b/init/99_chown_plex_owned_files.sh @@ -1,6 +1,7 @@ #!/bin/bash -if [ -f /config/Library/Application Support]; then -find "/config/Library/Application Support" -user plex -exec chown abc:abc {} \; -fi \ No newline at end of file +if [ -f "/config/Library/Application Support" ]; then +find "/config/Library/Application Support" \! -user abc -exec chown -h abc:abc {} \; +find "/config/Library/Application Support" \! -group abc -exec chown -h abc:abc {} \; +fi From bf142b17af66b85fd6b6e706eae74e6faecc6fd8 Mon Sep 17 00:00:00 2001 From: ljm42 Date: Fri, 17 Jul 2015 22:32:47 -0700 Subject: [PATCH 14/23] Update 99_chown_plex_owned_files.sh update conditional --- init/99_chown_plex_owned_files.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/init/99_chown_plex_owned_files.sh b/init/99_chown_plex_owned_files.sh index 03c46d3..9d754be 100644 --- a/init/99_chown_plex_owned_files.sh +++ b/init/99_chown_plex_owned_files.sh @@ -1,7 +1,7 @@ #!/bin/bash -if [ -f "/config/Library/Application Support" ]; then +if [ -d "/config/Library/Application Support" ]; then find "/config/Library/Application Support" \! -user abc -exec chown -h abc:abc {} \; find "/config/Library/Application Support" \! -group abc -exec chown -h abc:abc {} \; fi From 77f884f97825da3640096cd44c7191aea3ea3937 Mon Sep 17 00:00:00 2001 From: Stian Buch Larsen Date: Sat, 18 Jul 2015 08:28:17 +0200 Subject: [PATCH 15/23] Updated Readme --- README.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/README.md b/README.md index a193cb6..246bc8a 100644 --- a/README.md +++ b/README.md @@ -52,6 +52,8 @@ Part of what makes our containers work so well is by allowing you to specify you Auto-updating Ubuntu (phusion) based Plex Media Server container, brought to you by LinuxServer.io ## Changelog + ++ **18.07.2015:** Moved autoupdate to be hosted by linuxserver.io and implented bugfix thanks to ljm42. + **09.07.2015:** Now with ability to pick static versionnumber. + **08.07.2015:** Now with autoupdates. (Hosted by fanart.tv) + **03.07.2015:** Fixed a mistake that allowed plex to run as user plex rather than abc (99:100). Thanks to double16 for spotting this. From 0219898db6cfa452f22cb094c9ea3d66079cc810 Mon Sep 17 00:00:00 2001 From: ljm42 Date: Sat, 18 Jul 2015 21:33:41 -0700 Subject: [PATCH 16/23] Update 99_chown_plex_owned_files.sh * Operate one directory higher, on "/config/Library" instead of "/config/Library/Application Support" * Make all files user and group writable (chmod ug+w) so they can be modifed over a network share --- init/99_chown_plex_owned_files.sh | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/init/99_chown_plex_owned_files.sh b/init/99_chown_plex_owned_files.sh index 9d754be..1e3ea8f 100644 --- a/init/99_chown_plex_owned_files.sh +++ b/init/99_chown_plex_owned_files.sh @@ -1,7 +1,8 @@ #!/bin/bash -if [ -d "/config/Library/Application Support" ]; then -find "/config/Library/Application Support" \! -user abc -exec chown -h abc:abc {} \; -find "/config/Library/Application Support" \! -group abc -exec chown -h abc:abc {} \; +if [ -d "/config/Library" ]; then +find "/config/Library" \! -user abc -exec chown -h abc:abc {} \; +find "/config/Library" \! -group abc -exec chown -h abc:abc {} \; +chmod -R ug+w "/config/Library" fi From d6f5ee13e6f1f97f5f73b90b329cd3422f068f21 Mon Sep 17 00:00:00 2001 From: Stian Buch Larsen Date: Sun, 19 Jul 2015 10:30:38 +0200 Subject: [PATCH 17/23] Holy Crap, NO! This patch breaks The integrity of the plex database. Redacting --- init/99_chown_plex_owned_files.sh | 1 - 1 file changed, 1 deletion(-) diff --git a/init/99_chown_plex_owned_files.sh b/init/99_chown_plex_owned_files.sh index 1e3ea8f..51dd64f 100644 --- a/init/99_chown_plex_owned_files.sh +++ b/init/99_chown_plex_owned_files.sh @@ -4,5 +4,4 @@ if [ -d "/config/Library" ]; then find "/config/Library" \! -user abc -exec chown -h abc:abc {} \; find "/config/Library" \! -group abc -exec chown -h abc:abc {} \; -chmod -R ug+w "/config/Library" fi From cb56b0be155f2e2b2be29213c782b313a5d098dd Mon Sep 17 00:00:00 2001 From: Stian Buch Larsen Date: Sun, 19 Jul 2015 10:55:45 +0200 Subject: [PATCH 18/23] Added -v to find commands, to show progress when you are converting. --- init/99_chown_plex_owned_files.sh | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/init/99_chown_plex_owned_files.sh b/init/99_chown_plex_owned_files.sh index 51dd64f..4c6ac25 100644 --- a/init/99_chown_plex_owned_files.sh +++ b/init/99_chown_plex_owned_files.sh @@ -2,6 +2,8 @@ if [ -d "/config/Library" ]; then -find "/config/Library" \! -user abc -exec chown -h abc:abc {} \; -find "/config/Library" \! -group abc -exec chown -h abc:abc {} \; +find "/config/Library" \! -user abc -exec chown -hv abc:abc {} \; +find "/config/Library" \! -group abc -exec chown -hv abc:abc {} \; +find "/config/Library/Application Support/Plex Media Server/Plug-ins" fi + From cccc8b4c49c2adfe6f1beaf624c39b90c853474a Mon Sep 17 00:00:00 2001 From: Stian Buch Larsen Date: Sun, 19 Jul 2015 22:33:48 +0200 Subject: [PATCH 19/23] Updates from https now. --- Dockerfile | 2 +- init/20_update_plex.sh | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/Dockerfile b/Dockerfile index df65950..d35c92e 100644 --- a/Dockerfile +++ b/Dockerfile @@ -11,7 +11,7 @@ CMD ["/sbin/my_init"] # Install Plex RUN apt-get -q update && \ -VERSION=$(curl -s http://tools.linuxserver.io/latest-plex.json| grep "version" | cut -d '"' -f 4) && \ +VERSION=$(curl -s https://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 2f316b7..e54eef7 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 http://tools.linuxserver.io/latest-plexpass.json | grep "version" | cut -d '"' -f 4) + VERSION=$(curl -s https://tools.linuxserver.io/latest-plexpass.json | grep "version" | cut -d '"' -f 4) echo "Useing version: $VERSION from Plexpass latest" else - VERSION=$(curl -s http://tools.linuxserver.io/latest-plex.json| grep "version" | cut -d '"' -f 4) + VERSION=$(curl -s https://tools.linuxserver.io/latest-plex.json| grep "version" | cut -d '"' -f 4) echo "Useing version: $VERSION from Public latest" fi if [ "$VERSION" == "$INSTALLED" ]; then From 9690b5c57b6380ca55b15abc67ae1e8027acf573 Mon Sep 17 00:00:00 2001 From: Stian Buch Larsen Date: Sun, 19 Jul 2015 23:54:53 +0200 Subject: [PATCH 20/23] Hopefully way faster chmodding --- init/99_chown_plex_owned_files.sh | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/init/99_chown_plex_owned_files.sh b/init/99_chown_plex_owned_files.sh index 4c6ac25..8dc4dc8 100644 --- a/init/99_chown_plex_owned_files.sh +++ b/init/99_chown_plex_owned_files.sh @@ -2,8 +2,6 @@ if [ -d "/config/Library" ]; then -find "/config/Library" \! -user abc -exec chown -hv abc:abc {} \; -find "/config/Library" \! -group abc -exec chown -hv abc:abc {} \; -find "/config/Library/Application Support/Plex Media Server/Plug-ins" +find /config/Library ! \( -user abc -a -group abc \) -exec chown -hv abc:abc {} fi From 1a0559d72d7436c7260128a4d508f7c690b7f8f1 Mon Sep 17 00:00:00 2001 From: Stian Buch Larsen Date: Mon, 20 Jul 2015 00:08:07 +0200 Subject: [PATCH 21/23] Rename, and minor fix --- init/99_chown_plex_owned_files.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/init/99_chown_plex_owned_files.sh b/init/99_chown_plex_owned_files.sh index 8dc4dc8..66a976e 100644 --- a/init/99_chown_plex_owned_files.sh +++ b/init/99_chown_plex_owned_files.sh @@ -2,6 +2,6 @@ if [ -d "/config/Library" ]; then -find /config/Library ! \( -user abc -a -group abc \) -exec chown -hv abc:abc {} +find /config/Library ! \( -user abc -a -group abc \) -exec chown -hv abc:abc {} \; fi From 4282ca6d4162da26ad0a7ff1172b8c7022823771 Mon Sep 17 00:00:00 2001 From: Sean Dion Date: Thu, 30 Jul 2015 11:22:13 -0500 Subject: [PATCH 22/23] update baseimage --- Dockerfile | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/Dockerfile b/Dockerfile index d35c92e..119a055 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,8 +1,6 @@ -FROM phusion/baseimage:0.9.16 +FROM linuxserver/baseimage MAINTAINER Stian Larsen RUN rm -rf /etc/service/sshd /etc/my_init.d/00_regen_ssh_host_keys.sh -ENV DEBIAN_FRONTEND noninteractive -ENV HOME /root # Use baseimage-docker's init system From 12bf6afdc4f433cf48d48f90d63cbcca7d2baf2a Mon Sep 17 00:00:00 2001 From: Sean Dion Date: Tue, 4 Aug 2015 12:21:15 -0500 Subject: [PATCH 23/23] SSH removed in phusion .16. --- Dockerfile | 2 -- 1 file changed, 2 deletions(-) diff --git a/Dockerfile b/Dockerfile index 119a055..8275e42 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,7 +1,5 @@ FROM linuxserver/baseimage MAINTAINER Stian Larsen -RUN rm -rf /etc/service/sshd /etc/my_init.d/00_regen_ssh_host_keys.sh - # Use baseimage-docker's init system CMD ["/sbin/my_init"]