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

15 lines
286 B
Plaintext

#!/usr/bin/with-contenv bash
##################
# SYMLINK CONFIG #
##################
if [ ! -d /share/plex ]; then
mkdir /share/plex || true
echo "Copying Library folder"
mv /config/Library /share/plex
ln -s /share/plex/Library /config
else
chown -R abc:abc /share/plex
fi