New implentation of chowning

pull/8/head
Stian Buch Larsen 9 years ago
parent 19d9468c0c
commit 716149b8b6

@ -1,10 +1,13 @@
#!/bin/bash
if [ -d "/config/Library" ]; then
find /config/Library ! \( -user abc -a -group abc \) -exec chown -hv abc:abc {} +
else
if [ ! -d "/config/Library" ]; then
mkdir /config/Library
chown abc:abc /config/Library
fi
if [ ! -f "/config/Library/chown.log" ]; then
chown -Rc abc:root /config/Library >> /config/Library/chown.log
fi
Loading…
Cancel
Save