Update run

This commit is contained in:
Alexandre
2021-11-28 08:18:57 +01:00
committed by GitHub
parent e340dbfa54
commit 26527bfbd1

View File

@@ -15,10 +15,10 @@ else
# Create folder
mkdir -p "$(dirname "${CONFIGSOURCE}")"
# Downloading template
TEMPLATESOURCE="/templates/config.yaml"
curl -L -f -s $TEMPLATESOURCE --output $CONFIGSOURCE
#TEMPLATESOURCE="/templates/config.yaml"
#curl -L -f -s $TEMPLATESOURCE --output $CONFIGSOURCE
# Placing template in config
#cp config.yaml "$(dirname "${CONFIGSOURCE}")"
cp /templates/config.yaml "$(dirname "${CONFIGSOURCE}")"
# Need to restart
bashio::log.fatal "Config file not found, creating a new one. Please customize the file in $CONFIGSOURCE before restarting."
bashio::exit.nok