parent
19d9468c0c
commit
716149b8b6
@ -1,10 +1,13 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
|
|
||||||
if [ -d "/config/Library" ]; then
|
if [ ! -d "/config/Library" ]; then
|
||||||
find /config/Library ! \( -user abc -a -group abc \) -exec chown -hv abc:abc {} +
|
|
||||||
else
|
|
||||||
mkdir /config/Library
|
mkdir /config/Library
|
||||||
chown abc:abc /config/Library
|
chown abc:abc /config/Library
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
if [ ! -f "/config/Library/chown.log" ]; then
|
||||||
|
chown -Rc abc:root /config/Library >> /config/Library/chown.log
|
||||||
|
fi
|
Loading…
Reference in new issue