diff --git a/root/etc/cont-init.d/40-plex-first-run b/root/etc/cont-init.d/40-plex-first-run index 95a7606..748da87 100755 --- a/root/etc/cont-init.d/40-plex-first-run +++ b/root/etc/cont-init.d/40-plex-first-run @@ -67,10 +67,10 @@ fi if [ "${CHANGE_CONFIG_DIR_OWNERSHIP,,}" = "true" ]; then if [ -f "${prefFile}" ]; then if [ ! "$(stat -c %u "${prefFile}")" = "$(id -u plex)" ]; then - find /config \! \( -uid $(id -u plex) -gid $(id -g plex) \) -print0 | xargs -0 chown plex:plex + find /config \! \( -uid $(id -u plex) -gid $(id -g plex) \) -print0 | xargs -0 chown -h plex:plex fi else - find /config \! \( -uid $(id -u plex) -gid $(id -g plex) \) -print0 | xargs -0 chown plex:plex + find /config \! \( -uid $(id -u plex) -gid $(id -g plex) \) -print0 | xargs -0 chown -h plex:plex fi chown -R plex:plex /transcode fi