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

12 lines
435 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
# check for preferences file and exit out if not found
[[ ! -e "/config/Library/Application Support/Plex Media Server/Preferences.xml" ]] && \
exit 0
if [ ! -f "/config/Library/linuxserver-chown.lock" ]; then
find /config/Library ! \( -user abc -a -group abc \) -print0 | xargs -0 chown abc:abc
touch /config/Library/linuxserver-chown.lock
chown abc:abc /config/Library/linuxserver-chown.lock
fi