From bcf8c383ae52449b81d811de3bbbc5c313c2ec7a Mon Sep 17 00:00:00 2001 From: Alexandre <44178713+alexbelgium@users.noreply.github.com> Date: Mon, 16 Mar 2026 08:25:21 +0100 Subject: [PATCH] Update 99-run.sh --- immich_frame/rootfs/etc/cont-init.d/99-run.sh | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/immich_frame/rootfs/etc/cont-init.d/99-run.sh b/immich_frame/rootfs/etc/cont-init.d/99-run.sh index 1c58b40bd..6141be3d2 100755 --- a/immich_frame/rootfs/etc/cont-init.d/99-run.sh +++ b/immich_frame/rootfs/etc/cont-init.d/99-run.sh @@ -3,6 +3,17 @@ bashio::log.info "Starting Immich Frame" mkdir -p /config/Config + +# Handle legacy installs where /config/Config was a symlink to /app/Config +if [ -L /config/Config ]; then + bashio::log.info "Migrating legacy /config/Config symlink to real directory" + mkdir -p /config/Config.migrate + # Copy contents from the symlink target into the new real directory + cp -a /config/Config/. /config/Config.migrate/ 2>/dev/null || true + rm -f /config/Config + mv /config/Config.migrate /config/Config +fi + if [ -d /app/Config ] && [ ! -L /app/Config ]; then cp -n /app/Config/* /config/Config/ 2>/dev/null || true rm -rf /app/Config