From 83fea1509439fa0b45dfed055d3c450a571a39e7 Mon Sep 17 00:00:00 2001 From: Alexandre <44178713+alexbelgium@users.noreply.github.com> Date: Fri, 21 Feb 2025 09:22:30 +0100 Subject: [PATCH] Update 01-migrate.sh --- jellyfin/rootfs/etc/cont-init.d/01-migrate.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/jellyfin/rootfs/etc/cont-init.d/01-migrate.sh b/jellyfin/rootfs/etc/cont-init.d/01-migrate.sh index 13978a7a9..8fefed7e7 100644 --- a/jellyfin/rootfs/etc/cont-init.d/01-migrate.sh +++ b/jellyfin/rootfs/etc/cont-init.d/01-migrate.sh @@ -9,7 +9,7 @@ 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" LOCATION="${LOCATION/config/homeassistant}" mkdir -p /config/data - if [ -d $LOCATION ]; then + if [ -d "$LOCATION" ]; then cp -rf "$LOCATION"/* /config/data/ mv "$LOCATION" "$LOCATION"_migrated fi