Update 90-config_yaml.sh

This commit is contained in:
Alexandre
2022-02-20 11:13:40 +01:00
committed by GitHub
parent 10c1895f0b
commit 61eeb15e87

View File

@@ -9,6 +9,17 @@
# Where is the config
CONFIGSOURCE=$(bashio::config "CONFIG_LOCATION")
# Check if config is located in an acceptable location
#for location in "/share" "/config" "/data"
#if [[ "$CONFIGSOURCE" == "$location"* ]]; then
#LOCATIONOK=true
#fi
#done
#if [ ! "$LOCATIONOK" = "true" ]; then
#CONFIGSOURCE=
#bashio::log.fatal "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
# Check if config file is there, or create one from template
if [ -f "$CONFIGSOURCE" ]; then
echo "Using config file found in $CONFIGSOURCE"