mirror of
https://github.com/alexbelgium/hassio-addons.git
synced 2026-10-28 08:41:44 +00:00
Update migration script to check CONFIG_LOCATION
This commit is contained in:
1 parent
6e2b5029f0
commit
96cd5e2816
1 file changed
+1
-1
@@ -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