mirror of
https://github.com/alexbelgium/hassio-addons.git
synced 2026-02-21 11:00:32 +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"
|
new_config_dir="$new_config_location"
|
||||||
mkdir -p "$new_config_dir"
|
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")"
|
old_config_location="$(bashio::config "CONFIG_LOCATION")"
|
||||||
else
|
else
|
||||||
old_config_location="/config/addons_config/photoprism/config.yaml"
|
old_config_location="/config/addons_config/photoprism/config.yaml"
|
||||||
|
|||||||
Reference in New Issue
Block a user