Automatic Server Updates

Dr_Cornbread

New Member
Hi,

Is there any good way to automatically get server updates (on a Debian server specifically) apart from using wget to download the server JAR every reboot cycle regardless of whether it was updated?
 

Dr_Cornbread

New Member
@Fynn I've figured out a way, but I'm still working out the details of the shell script (will post here once complete). The idea is, on a regular basis, to check whether the Git commit hash printed at startup (git-XXXXXXX) is the same as the latest commit hash obtained using the GitHub API. If the two differ, the server needs updating. After that its as simple as stopping the server, updating with wget, and starting again.
 
Top