From a51f16ab198dbaa09ca11285e29b26befe33db9f Mon Sep 17 00:00:00 2001 From: Stian Buch Larsen Date: Fri, 28 Aug 2015 13:37:42 +0200 Subject: [PATCH] Forgot to copy that default plexmediaserver file --- Dockerfile | 10 ++++++---- init/20_update_plex.sh | 1 + 2 files changed, 7 insertions(+), 4 deletions(-) diff --git a/Dockerfile b/Dockerfile index cac73f7..9df979a 100644 --- a/Dockerfile +++ b/Dockerfile @@ -11,9 +11,7 @@ rm -f /tmp/plexmediaserver_${VERSION}_amd64.deb && \ apt-get clean && \ rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/* -#Mappings and ports -VOLUME /config -EXPOSE 32400 + #Adding Custom files ADD init/ /etc/my_init.d/ @@ -21,4 +19,8 @@ ADD services/ /etc/service/ RUN chmod -v +x /etc/service/*/run RUN chmod -v +x /etc/my_init.d/*.sh # Define /config in the configuration file not using environment variables -ADD plexmediaserver /etc/default/plexmediaserver +ADD plexmediaserver /defaults/plexmediaserver + +#Mappings and ports +VOLUME /config +EXPOSE 32400 \ No newline at end of file diff --git a/init/20_update_plex.sh b/init/20_update_plex.sh index 05f22ea..30e0033 100644 --- a/init/20_update_plex.sh +++ b/init/20_update_plex.sh @@ -24,6 +24,7 @@ if [[ ! "$VERSION" == "$INSTALLED " ]]; then rm -f /tmp/plexmediaserver_*.deb wget -P /tmp "http://downloads.plexapp.com/plex-media-server/$VERSION/plexmediaserver_${VERSION}_amd64.deb" last=$? + cp /defaults/plexmediaserver /etc/default/plexmediaserver done else echo "Allready Uptodate"