Update 99-run.sh

This commit is contained in:
Alexandre
2026-03-16 08:25:21 +01:00
committed by GitHub
parent 7b0c6c7ff2
commit bcf8c383ae

View File

@@ -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