mirror of
https://github.com/alexbelgium/hassio-addons.git
synced 2026-01-10 09:51:02 +01:00
Update migration script to check CONFIG_LOCATION
This commit is contained in:
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user