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