From 9f8ab7ee81c92f0aa096b0a12f4373b41d3b8d47 Mon Sep 17 00:00:00 2001 From: Alexandre <44178713+alexbelgium@users.noreply.github.com> Date: Fri, 24 Nov 2023 22:56:53 +0100 Subject: [PATCH] Update 01-config_yaml.sh --- .templates/01-config_yaml.sh | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/.templates/01-config_yaml.sh b/.templates/01-config_yaml.sh index 921891424..838e8d246 100755 --- a/.templates/01-config_yaml.sh +++ b/.templates/01-config_yaml.sh @@ -19,9 +19,11 @@ slug="${HOSTNAME#*-}" if [ ! -f /config/configuration.yaml ] && [ ! -f /config/configuration.json ]; then # New config location CONFIGLOCATION="/config" + CONFIGFILEBROWSER="/addon_configs/*-$slug/config.yaml" else # Legacy config location CONFIGLOCATION="/config/addons_config/${slug}" + CONFIGFILEBROWSER="/homeassistant/addons_config/$slug/config.yaml" fi # Default location @@ -79,6 +81,11 @@ fi echo "" bashio::log.green "Load environment variables from $CONFIGSOURCE if existing" +if [[ "$CONFIGSOURCE" == "/config"* ; then + bashio::log.green "If accessing the file with filebrowser it should be mapped to $CONFIGFILEBROWSER" +else + bashio::log.green "If accessing the file with filebrowser it should be mapped to $CONFIGSOURCE" +fi bashio::log.green "---------------------------------------------------------" bashio::log.green "Wiki here on how to use : github.com/alexbelgium/hassio-addons/wiki/Add‐ons-feature-:-add-env-variables" echo ""