mirror of
https://github.com/alexbelgium/hassio-addons.git
synced 2026-06-01 21:34:06 +02:00
Update 90-config_yaml.sh
This commit is contained in:
@@ -21,7 +21,7 @@ else
|
|||||||
cp /templates/config.yaml "$(dirname "${CONFIGSOURCE}")"
|
cp /templates/config.yaml "$(dirname "${CONFIGSOURCE}")"
|
||||||
# Need to restart
|
# Need to restart
|
||||||
bashio::log.fatal "Config file not found, creating a new one. Please customize the file in $CONFIGSOURCE before restarting."
|
bashio::log.fatal "Config file not found, creating a new one. Please customize the file in $CONFIGSOURCE before restarting."
|
||||||
bashio::exit.nok
|
# bashio::exit.nok
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Check if yaml is valid
|
# Check if yaml is valid
|
||||||
@@ -32,7 +32,7 @@ if [ $EXIT_CODE = 0 ]; then
|
|||||||
else
|
else
|
||||||
cat ERROR
|
cat ERROR
|
||||||
bashio::log.fatal "Config file has an invalid yaml format. Please check the file in $CONFIGSOURCE. Errors list above."
|
bashio::log.fatal "Config file has an invalid yaml format. Please check the file in $CONFIGSOURCE. Errors list above."
|
||||||
bashio::exit.nok
|
# bashio::exit.nok
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Export all yaml entries as env variables
|
# Export all yaml entries as env variables
|
||||||
|
|||||||
Reference in New Issue
Block a user