Each time this script is run it downloads the modpack if one is specified. When it tries to unzip the file, if the files already exist in the plugins directory, the script will hang indefinitely because unzip asks for confirmation that you want to overwrite the existing files. Adding -o to the unzip command will tell it to overwrite the files. I suspect the world download has the same issue, but I don't use that and so can't really test it.
* refactor server.properties sed ops into a utility function
* also switch to jq instead of jsawk
* simplify to BUILD_FROM_SOURCE from BUILD_SPIGOT_FROM_SOURCE
Fixes#70
* Download buildtools
* Download buildtools
* Not a good idea to chmod /root
* Remove bukkit code
* fix jar not found
* Run start-minecraft as root (temp)
* Working buildtools
* Remove echo line
* Added more server properties, not working yet
* Show what server properties are being added
* Show what server properties are being added
* Add rcon.password
* Add max-world-size
* Added alot of server settings
* Expose rcon port
* Export home per itzg suggestion
* Update readme and server properties
* Env for building spigot from source
* Update readme
using double pipe "||", bash will continue to the next statement if the
first statement returns false or has an error. Using the -N option, wget
will overwrite the file if it is newer. So, if the -O option was used,
and both wget commands failed (both http and https were down) then wget
would overwrite the file with a 0 byte copy and effectively delete it.
-N works better in this case, since wget will not overwrite it with an
empty file if it can't download it.
rm -f $SERVER was a bad idea, as it deletes the server file regardless
of whether wget is able to download a new one. If you keep a copy of
spigot_server in the server directory, wget will fail if it's unable to
pull the file and it wont delete what you already have.