From b78b2a4bd3521d9e8ccbdbb476510bca69fbfd26 Mon Sep 17 00:00:00 2001 From: Alexandre <44178713+alexbelgium@users.noreply.github.com> Date: Tue, 16 Nov 2021 18:07:13 +0100 Subject: [PATCH] Update 99-run.sh --- enedisgateway2mqtt_test/rootfs/scripts/99-run.sh | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/enedisgateway2mqtt_test/rootfs/scripts/99-run.sh b/enedisgateway2mqtt_test/rootfs/scripts/99-run.sh index dfd27d515..fd744198c 100644 --- a/enedisgateway2mqtt_test/rootfs/scripts/99-run.sh +++ b/enedisgateway2mqtt_test/rootfs/scripts/99-run.sh @@ -10,10 +10,8 @@ else echo "No config file, creating one from template" # Create folder mkdir -p "$(dirname "${CONFIGSOURCE}")" - # Downloading template - TEMPLATESOURCE=/data/config.yaml # Placing template in config - cp $TEMPLATESOURCE "$(dirname "${CONFIGSOURCE}")" + cp /data/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