docker-plex-wireguard/root/etc/cont-init.d/40-chown-files

13 lines
326 B
Text
Raw Normal View History

2016-06-30 22:59:35 +01:00
#!/usr/bin/with-contenv bash
2015-07-03 10:34:26 +02:00
2015-09-16 21:47:34 +02:00
if [ ! -d "/config/Library" ]; then
mkdir /config/Library
chown abc:abc /config/Library
fi
if [ ! -f "/config/Library/linuxserver-chown.lock" ]; then
find /config/Library ! \( -user abc -a -group root \) -print0 | xargs -0 chown abc:root
touch /config/Library/linuxserver-chown.lock
fi
2016-06-30 22:59:35 +01:00