Update 99_chown_plex_owned_files.sh
* Fixes conditional in "if" statement * searches for files/groups not owned by "abc" * works on symbolic links (chown -h)
This commit is contained in:
parent
b2086f5140
commit
ab2a1b42dc
1 changed files with 4 additions and 3 deletions
|
|
@ -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 [ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue