From 71197581b65d4e810da3e8c66cf6a21816cd6927 Mon Sep 17 00:00:00 2001 From: Alexandre <44178713+alexbelgium@users.noreply.github.com> Date: Thu, 14 Sep 2023 10:12:34 +0200 Subject: [PATCH] Update 90-create_links.sh --- plex/rootfs/etc/cont-init.d/90-create_links.sh | 7 ++++--- 1 file changed, 4 insertions(+), 3 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 11805f115..a172ba153 100755 --- a/plex/rootfs/etc/cont-init.d/90-create_links.sh +++ b/plex/rootfs/etc/cont-init.d/90-create_links.sh @@ -7,9 +7,6 @@ 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 @@ -22,3 +19,7 @@ else ln -s /share/plex/Library /config echo "Using existing config" fi + +chown -R "$PUID:$PGID" /config/Library +chown -R "$PUID:$PGID" /share/plex +chmod -R 777 /share/plex