From 4d5bf92054e91d77804f473c37514446314bbdce Mon Sep 17 00:00:00 2001 From: Alexandre <44178713+alexbelgium@users.noreply.github.com> Date: Tue, 16 Nov 2021 21:23:21 +0100 Subject: [PATCH] Update 99-run.sh --- enedisgateway2mqtt_test/rootfs/scripts/99-run.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/enedisgateway2mqtt_test/rootfs/scripts/99-run.sh b/enedisgateway2mqtt_test/rootfs/scripts/99-run.sh index 0d8a6980b..3d48634d5 100644 --- a/enedisgateway2mqtt_test/rootfs/scripts/99-run.sh +++ b/enedisgateway2mqtt_test/rootfs/scripts/99-run.sh @@ -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