Files
hassio-addons/plex/root/etc/cont-init.d/21-folders
2021-08-31 19:01:58 +02:00

16 lines
307 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
mkdir /share/plex
chown -R abc:abc /share/plex
fi