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…
Reference in new issue