diff --git a/init/99_chown_plex_owned_files.sh b/init/99_chown_plex_owned_files.sh index 73f8dae..03c46d3 100644 --- a/init/99_chown_plex_owned_files.sh +++ b/init/99_chown_plex_owned_files.sh @@ -1,6 +1,7 @@ #!/bin/bash -if [ -f /config/Library/Application Support]; then -find "/config/Library/Application Support" -user plex -exec chown abc:abc {} \; -fi \ No newline at end of file +if [ -f "/config/Library/Application Support" ]; then +find "/config/Library/Application Support" \! -user abc -exec chown -h abc:abc {} \; +find "/config/Library/Application Support" \! -group abc -exec chown -h abc:abc {} \; +fi