Files
hassio-addons/plex/root/etc/cont-init.d/21-folders
2021-08-31 18:59:45 +02:00

15 lines
287 B
Plaintext

#!/usr/bin/with-contenv bash
##################
# SYMLINK CONFIG #
##################
if [ /share/plex/Library ]; then
echo "Using existing Library folder"
rm /config/Library
ln -s /share/plex/Library /config
chown -R abc:abc /share/plex
else
chown -R abc:abc /share/plex
fi