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