The update checker is not detecting updates as SteamCMD is not always
returning the latest release number. I dont know why SteamCMD is doing
this.
I have added force-update which will simply force an update without
checking first (the server will restart)
I recommend using update once an hour and force-update daily.
* Now using unbuffer to stop the appearance of freezing when installing
and updating. Unbuffer is not always available so will only use it if
the command exists on the distro
--no-check-certificate presents a possible security risk.
--no-check-certificate is only used because older distros do not
recognise githubusercontent.com and will fail to download files. I have
decided to remove remove this option for now. It may be the case later
that I all this with older distros if there is a need for it.
Made a custom change for 7 Days To Die. If user wants or has Alloc's server fixes installed, they need to set the variable in the sdtdserver script to true and then the added coded in fn_validate will now download and install Alloc's fixes automatically.
Could possibly be put in a separate file and called by a function, but validate isn't run constantly so the extra few lines of code shouldn't matter.
Modified stop function to allow for graceful shutdown of a 7 Days To Die server. The file will still work for other game servers as it checks for the game name to be "7 Days To Die" as set in the sdtdserver script file and it also uses the new telnet variables I added to the sdtdserver script.
If not being run for 7 Days To Die, it reverts to the previous stop method of killing the server process.