Handle empty /config, pass multiple args to chown

pull/7/head
Patrick Double 10 years ago
parent f07f9d553f
commit 2018f9046e

@ -2,6 +2,9 @@
if [ -d "/config/Library" ]; then
find /config/Library ! \( -user abc -a -group abc \) -exec chown -hv abc:abc {} \;
find /config/Library ! \( -user abc -a -group abc \) -exec chown -hv abc:abc {} +
else
mkdir /config/Library
chown abc:abc /config/Library
fi

Loading…
Cancel
Save