From 3a8c8eab86a2333499c16c244a68a5cdbad1c1b1 Mon Sep 17 00:00:00 2001 From: Alexandre <44178713+alexbelgium@users.noreply.github.com> Date: Sat, 22 Feb 2025 20:54:15 +0100 Subject: [PATCH] Update 01-migrate.sh --- jellyfin/rootfs/etc/cont-init.d/01-migrate.sh | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/jellyfin/rootfs/etc/cont-init.d/01-migrate.sh b/jellyfin/rootfs/etc/cont-init.d/01-migrate.sh index 652fd18a87a..509ccd6b7b1 100755 --- a/jellyfin/rootfs/etc/cont-init.d/01-migrate.sh +++ b/jellyfin/rootfs/etc/cont-init.d/01-migrate.sh @@ -14,6 +14,10 @@ if [[ "$LOCATION" == "/share/jellyfin" ]] && [ ! -d /share/jellyfin ] && [ -d /h fi fi +if [ -d /homeassistant/addons_config/jellyfin_migrated ]; then + ln -sf "$LOCATION" /config/addons_config/jellyfin +fi + # Migration to new /config logic if [[ "$LOCATION" == "/config/addons_config/"* ]]; then bashio::log.warning "Data folder was $LOCATION, it is migrated to /config/data. The previous folder is renamed to _migrated"