From bbf901103906354b6faeabedf3517f7445d9a90b Mon Sep 17 00:00:00 2001 From: Alexandre <44178713+alexbelgium@users.noreply.github.com> Date: Wed, 26 Jul 2023 19:17:45 +0200 Subject: [PATCH] Copy template --- enedisgateway2mqtt/rootfs/etc/cont-init.d/99-run.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/enedisgateway2mqtt/rootfs/etc/cont-init.d/99-run.sh b/enedisgateway2mqtt/rootfs/etc/cont-init.d/99-run.sh index 08c110149..3032c8957 100755 --- a/enedisgateway2mqtt/rootfs/etc/cont-init.d/99-run.sh +++ b/enedisgateway2mqtt/rootfs/etc/cont-init.d/99-run.sh @@ -91,7 +91,7 @@ if [ -f "$CONFIGSOURCE" ]; then 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