From 1f1d3e6e3e88477730c86fcfe378dc415066452d Mon Sep 17 00:00:00 2001 From: Alexandre <44178713+alexbelgium@users.noreply.github.com> Date: Tue, 29 Jul 2025 22:59:14 +0200 Subject: [PATCH] Update 90-create_links.sh --- plex/rootfs/etc/cont-init.d/90-create_links.sh | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/plex/rootfs/etc/cont-init.d/90-create_links.sh b/plex/rootfs/etc/cont-init.d/90-create_links.sh index b9cec1f13..93a1bc234 100755 --- a/plex/rootfs/etc/cont-init.d/90-create_links.sh +++ b/plex/rootfs/etc/cont-init.d/90-create_links.sh @@ -9,16 +9,14 @@ if [ ! -d /share/plex ]; then mkdir -p /share/plex fi -if [ ! -d /share/plex/Library ]; then +if [ ! -d /share/plex/Library ] && [ -d /config/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 +ln -sf /share/plex/Library /config # Only fix ownership/mode if needed (top-level only—*not* blindly every file) PUID="$(bashio::config "PUID")"