From c1108f0fc05cde93ec758466de2bbf87f31c8c82 Mon Sep 17 00:00:00 2001 From: Alexandre <44178713+alexbelgium@users.noreply.github.com> Date: Wed, 26 Jul 2023 19:24:30 +0200 Subject: [PATCH] Update 99-run.sh --- enedisgateway2mqtt_dev/rootfs/etc/cont-init.d/99-run.sh | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/enedisgateway2mqtt_dev/rootfs/etc/cont-init.d/99-run.sh b/enedisgateway2mqtt_dev/rootfs/etc/cont-init.d/99-run.sh index 08c110149..ae7548a44 100755 --- a/enedisgateway2mqtt_dev/rootfs/etc/cont-init.d/99-run.sh +++ b/enedisgateway2mqtt_dev/rootfs/etc/cont-init.d/99-run.sh @@ -87,11 +87,10 @@ if [ -f "$CONFIGSOURCE" ]; then else cat ERROR bashio::log.fatal "Config file has an invalid yaml format. Please check the file in $CONFIGSOURCE. Errors list above. You can check yaml validity with the online tool yamllint.com" - bashio::exit.nok fi else # Create symlink for addon to create config - touch "${CONFIGSOURCE}" + cp /templates/config.yaml "$(dirname "${CONFIGSOURCE}")"/ ln -sf "$CONFIGSOURCE" /data rm "$CONFIGSOURCE" # Need to restart