mirror of
https://github.com/alexbelgium/hassio-addons.git
synced 2026-01-11 02:11:01 +01:00
Update 90-config_yaml.sh
This commit is contained in:
@@ -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=$?
|
||||
|
||||
Reference in New Issue
Block a user