From e26345fd4746598eab435296611618494f27264d Mon Sep 17 00:00:00 2001 From: Alexandre <44178713+alexbelgium@users.noreply.github.com> Date: Fri, 1 Dec 2023 13:08:42 +0100 Subject: [PATCH] Update 01-config_yaml.sh --- .templates/01-config_yaml.sh | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/.templates/01-config_yaml.sh b/.templates/01-config_yaml.sh index 76ffc1635..a153b2bd4 100755 --- a/.templates/01-config_yaml.sh +++ b/.templates/01-config_yaml.sh @@ -12,16 +12,17 @@ if [ ! -d /config ]; then exit 0 fi -# Define slug if -slug="${HOSTNAME#*-}" +# Define slug +slug="${HOSTNAME}" # Check type of config folder if [ ! -f /config/configuration.yaml ] && [ ! -f /config/configuration.json ]; then # New config location CONFIGLOCATION="/config" - CONFIGFILEBROWSER="/addon_configs/*-$slug/config.yaml" + CONFIGFILEBROWSER="/addon_configs/$slug/config.yaml" else # Legacy config location + slug="${HOSTNAME#*-}" CONFIGLOCATION="/config/addons_config/${slug}" CONFIGFILEBROWSER="/homeassistant/addons_config/$slug/config.yaml" fi