Update migration script to check CONFIG_LOCATION

This commit is contained in:
Alexandre
2026-01-09 10:03:51 +01:00
committed by GitHub
parent 6e2b5029f0
commit 96cd5e2816

View File

@@ -7,7 +7,7 @@ new_config_location="/config"
new_config_dir="$new_config_location"
mkdir -p "$new_config_dir"
if bashio::config.has_value "CONFIG_LOCATION"; then
if bashio::config.has_value "CONFIG_LOCATION" && [[ "$(bashio::config "CONFIG_LOCATION")" != "/config" ]]; then
old_config_location="$(bashio::config "CONFIG_LOCATION")"
else
old_config_location="/config/addons_config/photoprism/config.yaml"