From 705d7ca70d282b9af7eb295cb2cd1ba15783c99c Mon Sep 17 00:00:00 2001 From: Alexandre <44178713+alexbelgium@users.noreply.github.com> Date: Thu, 23 Nov 2023 19:05:09 +0100 Subject: [PATCH] Update 01-config_yaml.sh --- .templates/01-config_yaml.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.templates/01-config_yaml.sh b/.templates/01-config_yaml.sh index f24766a31..016ad831c 100755 --- a/.templates/01-config_yaml.sh +++ b/.templates/01-config_yaml.sh @@ -30,7 +30,7 @@ if bashio::config.has_value 'CONFIG_LOCATION'; then # Get config source CONFIGSOURCE=$(bashio::config "CONFIG_LOCATION") # Check CONFIGSOURCE ends with config.yaml - if [[ "$CONFIGSOURCE" != "*.yaml" ]]; then + if [[ "$CONFIGSOURCE" != *".yaml" ]]; then # Remove trailing slash and add config.yaml CONFIGSOURCE="${CONFIGSOURCE%/}"/config.yaml fi @@ -42,7 +42,7 @@ if bashio::config.has_value 'CONFIG_LOCATION'; then fi done if [ -z "$LOCATIONOK" ]; then - CONFIGSOURCE="$CONFIGLOCATION" + CONFIGSOURCE="$CONFIGLOCATION"/config.yaml bashio::log.red "Watch-out : your CONFIG_LOCATION values can only be set in /share, /config or /data (internal to addon). It will be reset to the default location : $CONFIGSOURCE" fi