diff --git a/init/99_chown_plex_owned_files.sh b/init/99_chown_plex_owned_files.sh index 4c6ac25..8dc4dc8 100644 --- a/init/99_chown_plex_owned_files.sh +++ b/init/99_chown_plex_owned_files.sh @@ -2,8 +2,6 @@ if [ -d "/config/Library" ]; then -find "/config/Library" \! -user abc -exec chown -hv abc:abc {} \; -find "/config/Library" \! -group abc -exec chown -hv abc:abc {} \; -find "/config/Library/Application Support/Plex Media Server/Plug-ins" +find /config/Library ! \( -user abc -a -group abc \) -exec chown -hv abc:abc {} fi