parent
716149b8b6
commit
8844359713
@ -1,13 +1,11 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
|
|
||||||
if [ ! -d "/config/Library" ]; then
|
if [ ! -d "/config/Library" ]; then
|
||||||
mkdir /config/Library
|
mkdir /config/Library
|
||||||
chown abc:abc /config/Library
|
chown abc:abc /config/Library
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
if [ ! -f "/config/Library/linuxserver-chown.lock" ]; then
|
||||||
|
find /config/Library ! \( -user abc -a -group root \) -print0 | xargs -0 chown abc:root
|
||||||
if [ ! -f "/config/Library/chown.log" ]; then
|
touch /config/Library/linuxserver-chown.lock
|
||||||
chown -Rc abc:root /config/Library >> /config/Library/chown.log
|
|
||||||
fi
|
fi
|
Loading…
Reference in new issue