itzg/mc-image-helper

[Bug?] Patch is applied before file creation

Closed this issue · 3 comments

Hi, first of all, thank you for your incredible work . The issue that I'm encountering is related to the fact that I'd like to patch the "/data/config/paper-global.yml" file before the server starts. I'm using docker-java to create the environment and pass the envars to the container. However, this file is created AFTER the server is started for the first time. Would it be possible for mc-image-helper to just start the server once, and then automatically restart while patching files?

Edit: Tried to fix it by coping the default "paper-global.yml" file from a completely clean server and then patching it. It kinda works, but when the file's version inevitably gets updated, this will break...

Thank you!

itzg commented

Fair request but very difficult to implement. It's a duplicate of itzg/docker-minecraft-server#2522 so I'll close this one.

Whoops, sorry for not checking the other repositories! I'll try your provided solution, thank you!

itzg commented

No problem at all. The patching happens with the helper, so it was a logical place to log the issue.