command_update.sh 868 B

12345678910111213141516171819202122232425262728293031323334353637
  1. #!/bin/bash
  2. # LinuxGSM command_update.sh function
  3. # Author: Daniel Gibbs
  4. # Website: https://linuxgsm.com
  5. # Description: Handles updating of servers.
  6. commandname="UPDATE"
  7. commandaction="Updating"
  8. functionselfname="$(basename "$(readlink -f "${BASH_SOURCE[0]}")")"
  9. fn_firstcommand_set
  10. fn_print_dots ""
  11. check.sh
  12. core_logs.sh
  13. check_last_update.sh
  14. if [ "${shortname}" == "ts3" ]; then
  15. update_ts3.sh
  16. elif [ "${shortname}" == "mc" ]; then
  17. update_minecraft.sh
  18. elif [ "${shortname}" == "mcb" ]; then
  19. update_minecraft_bedrock.sh
  20. elif [ "${shortname}" == "mumble" ]; then
  21. update_mumble.sh
  22. elif [ "${shortname}" == "fctr" ]; then
  23. update_factorio.sh
  24. elif [ "${shortname}" == "mta" ]; then
  25. update_mta.sh
  26. elif [ "${shortname}" == "jk2" ]; then
  27. update_jediknight2.sh
  28. elif [ "${shortname}" == "vints" ]; then
  29. update_vintagestory.sh
  30. else
  31. update_steamcmd.sh
  32. fi
  33. core_exit.sh