mirror of
https://github.com/alexbelgium/hassio-addons.git
synced 2026-07-15 10:30:32 +02:00
Update run
This commit is contained in:
@@ -15,10 +15,10 @@ else
|
|||||||
# Create folder
|
# Create folder
|
||||||
mkdir -p "$(dirname "${CONFIGSOURCE}")"
|
mkdir -p "$(dirname "${CONFIGSOURCE}")"
|
||||||
# Downloading template
|
# Downloading template
|
||||||
TEMPLATESOURCE="/templates/config.yaml"
|
#TEMPLATESOURCE="/templates/config.yaml"
|
||||||
curl -L -f -s $TEMPLATESOURCE --output $CONFIGSOURCE
|
#curl -L -f -s $TEMPLATESOURCE --output $CONFIGSOURCE
|
||||||
# Placing template in config
|
# Placing template in config
|
||||||
#cp 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
|
||||||
|
|||||||
Reference in New Issue
Block a user