Rename plex/rootfs/etc/cont-init.d/90-create_links.sh to plex/rootfs/scripts/90-create_links.sh

This commit is contained in:
Alexandre
2023-09-13 12:53:20 +02:00
committed by GitHub
parent 4da3556103
commit 7adf6fc836

View File

@@ -1,24 +0,0 @@
#!/bin/bash
##################
# SYMLINK CONFIG #
##################
if [ ! -d /share/plex ]; then
echo "Creating /share/plex"
mkdir -p /share/plex
chown -R "$PUID:$PGID" /share/plex
else
chown -R "$PUID:$PGID" /share/plex
fi
if [ ! -d /share/plex/Library ]; then
echo "moving Library folder"
mv /config/Library /share/plex
ln -s /share/plex/Library /config
echo "links done"
else
rm -r /config/Library
ln -s /share/plex/Library /config
echo "Using existing config"
fi