diff --git a/Dockerfile b/Dockerfile index dd20ff3..3338a3b 100644 --- a/Dockerfile +++ b/Dockerfile @@ -41,8 +41,7 @@ RUN \ EXPOSE 32400/tcp 3005/tcp 8324/tcp 32469/tcp 1900/udp 32410/udp 32412/udp 32413/udp 32414/udp VOLUME /config /transcode -ENV CHANGE_DIR_RIGHTS="false" \ - CHANGE_CONFIG_DIR_OWNERSHIP="true" \ +ENV CHANGE_CONFIG_DIR_OWNERSHIP="true" \ HOME="/config" ARG TAG=plexpass diff --git a/README.md b/README.md index 413ffa7..1604a9f 100644 --- a/README.md +++ b/README.md @@ -53,7 +53,6 @@ These parameters are usually not required but some special setups may benefit fr - **PLEX_UID** The user id of the `plex` user created inside the container. - **PLEX_GID** The group id of the `plex` group created inside the container - **CHANGE_CONFIG_DIR_OWNERSHIP** Change ownership of config directory to the plex user. Defaults to `true` -- **CHANGE_DIR_RIGHTS** Change permissions of data directory (media) to be readable by plex user. Defaults to `false` - **ALLOWED_NETWORKS** IP/netmask entries which allow access to the server without requiring authorization. We recommend you set this only if you do not sign in your server. For example `192.168.1.0/24,172.16.0.0/16` will allow access to the entire `192.168.1.x` range and the `172.16.x.x` range. ### Networking diff --git a/root/etc/cont-init.d/40-plex-first-run b/root/etc/cont-init.d/40-plex-first-run index b9c273f..85d54ad 100755 --- a/root/etc/cont-init.d/40-plex-first-run +++ b/root/etc/cont-init.d/40-plex-first-run @@ -53,13 +53,6 @@ if [ "${CHANGE_CONFIG_DIR_OWNERSHIP,,}" = "true" ]; then chown -R plex:plex /config /transcode fi -# Update permisions for data we need to read -if [ "${CHANGE_DIR_RIGHTS,,}" = "true" ]; then - echo "Changing data directory rights" - chgrp -R plex /data - chmod -R g+rX /data -fi - # Create empty shell pref file if it doesn't exist already if [ ! -e "${prefFile}" ]; then echo "Creating pref shell"