* Fixes conditional in "if" statement * searches for files/groups not owned by "abc" * works on symbolic links (chown -h)
7 lines
242 B
Bash
7 lines
242 B
Bash
#!/bin/bash
|
|
|
|
|
|
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
|