Update 99-run.sh

This commit is contained in:
Alexandre
2021-11-16 21:23:21 +01:00
committed by GitHub
parent 7c535cb929
commit 4d5bf92054

View File

@@ -11,7 +11,8 @@ else
# Create folder
mkdir -p "$(dirname "${CONFIGSOURCE}")"
# Placing template in config
cp /data/config.yaml "$(dirname "${CONFIGSOURCE}")" || cp /templates/config.yaml "$(dirname "${CONFIGSOURCE}")"
cp /data/config.yaml "$(dirname "${CONFIGSOURCE}")" &>/dev/null \
|| 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