Closed sockenklaus closed 11 years ago
This pull request divides the function "mc_update()" into four functions:
check_update_vanilla()
check_update_craftbukkit()
get_craftbukkit_release_channel()
mc_update()
This gives us the possibility to invoke /etc/init.d/minecraft check-update to check for updates without shutting down the server.
/etc/init.d/minecraft check-update
Good one!
This pull request divides the function "mc_update()" into four functions:
check_update_vanilla()
: Checks, if there is an update for minecraft_server.jarcheck_update_craftbukkit()
: Checks, if there is an update for craftbukkit.jarget_craftbukkit_release_channel()
: Help function, that returns the CB download url.mc_update()
: The actual update function, that invokes the two check-functions to check if an update is necessary.This gives us the possibility to invoke
/etc/init.d/minecraft check-update
to check for updates without shutting down the server.