Update 90-config_yaml.sh

This commit is contained in:
Alexandre
2022-01-26 16:27:14 +01:00
committed by GitHub
parent acdb847850
commit 3c775b13ef

View File

@@ -7,7 +7,6 @@
# Where is the config
CONFIGSOURCE=$(bashio::config "CONFIG_LOCATION")
chmod 755 $CONFIGSOURCE
# Check if config file is there, or create one from template
if [ -f $CONFIGSOURCE ]; then
@@ -30,6 +29,9 @@ else
# bashio::exit.nok
fi
# Permissions
chmod -R 755 "$(dirname "${CONFIGSOURCE}")"
# Check if yaml is valid
EXIT_CODE=0
yamllint -d relaxed $CONFIGSOURCE &>ERROR || EXIT_CODE=$?