mirror of
https://github.com/alexbelgium/hassio-addons.git
synced 2026-05-26 02:31:51 +02:00
Update 20-configuration.sh
This commit is contained in:
@@ -23,8 +23,10 @@ CONFIGSOURCE=$(bashio::config "HOME")
|
|||||||
|
|
||||||
# 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/config.yml ]; then
|
if [ -f $CONFIGSOURCE/config.yml ]; then
|
||||||
echo "Using config file found in $CONFIGSOURCE"
|
bashio::log.info "Using config file found in $CONFIGSOURCE"
|
||||||
else
|
else
|
||||||
echo "No config file, creating one from template"
|
|
||||||
cp /templates/config.yml "$(dirname "${CONFIGSOURCE}")"
|
cp /templates/config.yml "$(dirname "${CONFIGSOURCE}")"
|
||||||
|
bashio::log.warning "No config file, creating one from template. Please correct the config.yml file before restarting the addon !"
|
||||||
|
sleep 10
|
||||||
|
bashio::addon.stop
|
||||||
fi
|
fi
|
||||||
|
|||||||
Reference in New Issue
Block a user