Skip to content

Commit

Permalink
Update 01-migrate.sh
Browse files Browse the repository at this point in the history
  • Loading branch information
alexbelgium authored Feb 22, 2025
1 parent 87884bd commit 3a8c8ea
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions jellyfin/rootfs/etc/cont-init.d/01-migrate.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down

0 comments on commit 3a8c8ea

Please sign in to comment.