docker-plex-wireguard/root/etc/cont-init.d/50-chown-files
2016-08-22 13:20:40 +01:00

11 lines
435 B
Text
Raw Blame History

This file contains invisible Unicode characters

This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

#!/usr/bin/with-contenv bash
# 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