mirror of
https://github.com/alexbelgium/hassio-addons.git
synced 2026-06-28 18:26:04 +02:00
Update 99-run.sh
This commit is contained in:
@@ -10,10 +10,8 @@ else
|
|||||||
echo "No config file, creating one from template"
|
echo "No config file, creating one from template"
|
||||||
# Create folder
|
# Create folder
|
||||||
mkdir -p "$(dirname "${CONFIGSOURCE}")"
|
mkdir -p "$(dirname "${CONFIGSOURCE}")"
|
||||||
# Downloading template
|
|
||||||
TEMPLATESOURCE=/data/config.yaml
|
|
||||||
# Placing template in config
|
# Placing template in config
|
||||||
cp $TEMPLATESOURCE "$(dirname "${CONFIGSOURCE}")"
|
cp /data/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