From 73635c64d7f77cbc160d6d09051b1a9305c1cb52 Mon Sep 17 00:00:00 2001 From: Stian Buch Larsen Date: Sun, 10 May 2015 14:05:07 +0200 Subject: [PATCH] Because sometimes localtesting is not enugh Anoying error, forgot to add user abc --- Dockerfile | 7 +++++-- plexmediaserver | 2 +- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/Dockerfile b/Dockerfile index cc5f4bf..104a8ff 100644 --- a/Dockerfile +++ b/Dockerfile @@ -22,12 +22,15 @@ rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/* VOLUME /config EXPOSE 32400 +#Adduser +RUN useradd -u 911 -U -s /bin/false abc +RUN usermod -G users abc -# Define /config in the configuration file not using environment variables -ADD plexmediaserver /etc/default/plexmediaserver #Adding Custom files ADD init/ /etc/my_init.d/ 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 diff --git a/plexmediaserver b/plexmediaserver index 605fb17..1752115 100644 --- a/plexmediaserver +++ b/plexmediaserver @@ -16,4 +16,4 @@ PLEX_MEDIA_SERVER_APPLICATION_SUPPORT_DIR="/config/Library/Application Support" # note that if you change this you might need to move # the Application Support directory to not lose your # media library -PLEX_MEDIA_SERVER_USER=plex +PLEX_MEDIA_SERVER_USER=abc