Merge pull request #4 from ljm42/patch-1

Update 99_chown_plex_owned_files.sh
This commit is contained in:
Stian Buch Larsen 2015-07-18 08:09:30 +02:00
commit 6284176fc1

View File

@ -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
if [ -d "/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