4
0

command_update.sh 1.0 KB

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