mirror of
https://github.com/alexbelgium/hassio-addons.git
synced 2026-06-26 17:26:05 +02:00
Update 90-config_yaml.sh
This commit is contained in:
@@ -7,7 +7,6 @@
|
|||||||
|
|
||||||
# Where is the config
|
# Where is the config
|
||||||
CONFIGSOURCE=$(bashio::config "CONFIG_LOCATION")
|
CONFIGSOURCE=$(bashio::config "CONFIG_LOCATION")
|
||||||
chmod 755 $CONFIGSOURCE
|
|
||||||
|
|
||||||
# Check if config file is there, or create one from template
|
# Check if config file is there, or create one from template
|
||||||
if [ -f $CONFIGSOURCE ]; then
|
if [ -f $CONFIGSOURCE ]; then
|
||||||
@@ -30,6 +29,9 @@ else
|
|||||||
# bashio::exit.nok
|
# bashio::exit.nok
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
# Permissions
|
||||||
|
chmod -R 755 "$(dirname "${CONFIGSOURCE}")"
|
||||||
|
|
||||||
# Check if yaml is valid
|
# Check if yaml is valid
|
||||||
EXIT_CODE=0
|
EXIT_CODE=0
|
||||||
yamllint -d relaxed $CONFIGSOURCE &>ERROR || EXIT_CODE=$?
|
yamllint -d relaxed $CONFIGSOURCE &>ERROR || EXIT_CODE=$?
|
||||||
|
|||||||
Reference in New Issue
Block a user