command_update.sh 677 B

123456789101112131415161718192021222324252627282930
  1. #!/bin/bash
  2. # LinuxGSM 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. elif [ "${gamename}" == "Multi Theft Auto" ]; then
  21. update_mta.sh
  22. else
  23. update_steamcmd.sh
  24. fi
  25. core_exit.sh