Adjust photoprism migration marker

This commit is contained in:
Alexandre
2026-01-09 09:47:05 +01:00
parent 2dd05df4c9
commit 31417d0297
5 changed files with 30 additions and 7 deletions

View File

@@ -0,0 +1,16 @@
#!/usr/bin/with-contenv bashio
# shellcheck shell=bash
set -e
slug=photoprism
if [ -d "/homeassistant/addons_config/$slug" ]; then
echo "Migrating /homeassistant/addons_config/$slug to /addon_configs/xxx-$slug"
cp -rnf /homeassistant/addons_config/"$slug"/. /config/ || true
echo "Migrated to internal config folder accessible at /addon_configs/xxx-$slug" \
> "/homeassistant/addons_config/$slug/.migrate"
fi
if [ -d /config/addons_config ]; then
rm -rf /config/addons_config
fi