From 4a76b61d4e7cb6db3ee0441c8ea475a2a3c7c5c5 Mon Sep 17 00:00:00 2001 From: Alexandre <44178713+alexbelgium@users.noreply.github.com> Date: Sat, 13 Dec 2025 20:13:28 +0100 Subject: [PATCH] Update jellyfin/rootfs/etc/cont-init.d/90-data_location.sh Co-authored-by: gemini-code-assist[bot] <176961590+gemini-code-assist[bot]@users.noreply.github.com> --- jellyfin/rootfs/etc/cont-init.d/90-data_location.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/jellyfin/rootfs/etc/cont-init.d/90-data_location.sh b/jellyfin/rootfs/etc/cont-init.d/90-data_location.sh index ae4154b62..346bb7fb6 100755 --- a/jellyfin/rootfs/etc/cont-init.d/90-data_location.sh +++ b/jellyfin/rootfs/etc/cont-init.d/90-data_location.sh @@ -27,11 +27,11 @@ sed -i "s|/usr/share/jellyfin|$LOCATION|g" /etc/nginx/servers/ingress.conf # Custom transcode location mkdir -p /data/transcodes -if [ -L "$LOCATION"/data/transcodes ]; then - rm "$LOCATION"/data/transcodes -elif [ -d "$LOCATION"/data/transcodes ]; then +if [ -d "$LOCATION"/data/transcodes ]; then cp -rT "$LOCATION"/data/transcodes /data/transcodes || true rm -r "$LOCATION"/data/transcodes +elif [ -L "$LOCATION"/data/transcodes ]; then + rm "$LOCATION"/data/transcodes fi ln -sfn /data/transcodes "$LOCATION"/data/transcodes chown -R "$PUID":"$PGID" /data/transcodes