AshDevFr / docker-spigot

MIT License
33 stars 18 forks source link

Doesn’t update automatically after changing REV variable #5

Open bouk opened 6 years ago

bouk commented 6 years ago

Great job on the project! It works nicely.

There’s just one issue I’ve walked into: if you keep using the same location for the data and restart the container after changing the REV variable, the unit script won’t update the jar automatically. Instead you have to delete the server jar manually. It would be great if the init script compared the version of the jar, or did maybe put the version into the file name of the jar so it knew to install after changing the revision.

mathuin commented 6 years ago

I have a modified version of spigot_init.sh which addresses this issue and a few others.

There are some other changes, too, like creating a non-root user and abstracting out the URLs to script variables. I can make a pull request if that's desired.