command_update.sh 614 B

12345678910111213141516171819202122232425262728
  1. #!/bin/bash
  2. # LGSM command_update.sh function
  3. # Author: Daniel Gibbs
  4. # Website: https://gameservermanagers.com
  5. # Description: Handles updating of servers.
  6. local commandname="UPDATE"
  7. local commandaction="Update"
  8. local function_selfname="$(basename $(readlink -f "${BASH_SOURCE[0]}"))"
  9. fn_print_dots ""
  10. sleep 0.5
  11. check.sh
  12. if [ "${gamename}" == "TeamSpeak 3" ]; then
  13. update_ts3.sh
  14. elif [ "${engine}" == "lwjgl2" ]; then
  15. update_minecraft.sh
  16. elif [ "${gamename}" == "Mumble" ]; then
  17. update_mumble.sh
  18. elif [ "${gamename}" == "Factorio" ]; then
  19. update_factorio.sh
  20. else
  21. update_steamcmd.sh
  22. fi
  23. core_exit.sh