4
0

command_check_update.sh 1.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. #!/bin/bash
  2. # LinuxGSM command_check_update.sh module
  3. # Author: Daniel Gibbs
  4. # Contributors: https://linuxgsm.com/contrib
  5. # Website: https://linuxgsm.com
  6. # Description: Handles updating of servers.
  7. commandname="CHECK-UPDATE"
  8. commandaction="Check for Update"
  9. moduleselfname="$(basename "$(readlink -f "${BASH_SOURCE[0]}")")"
  10. fn_firstcommand_set
  11. fn_print_dots ""
  12. check.sh
  13. core_logs.sh
  14. if [ "${shortname}" == "ts3" ]; then
  15. update_ts3.sh
  16. elif [ "${shortname}" == "mc" ]; then
  17. update_mc.sh
  18. elif [ "${shortname}" == "mcb" ]; then
  19. update_mcb.sh
  20. elif [ "${shortname}" == "pmc" ] || [ "${shortname}" == "vpmc" ] || [ "${shortname}" == "wmc" ]; then
  21. update_pmc.sh
  22. elif [ "${shortname}" == "fctr" ]; then
  23. update_fctr.sh
  24. elif [ "${shortname}" == "mta" ]; then
  25. update_mta.sh
  26. elif [ "${shortname}" == "jk2" ]; then
  27. update_jk2.sh
  28. elif [ "${shortname}" == "vints" ]; then
  29. update_vints.sh
  30. elif [ "${shortname}" == "ut99" ]; then
  31. update_ut99.sh
  32. elif [ "${shortname}" == "xnt" ]; then
  33. update_xnt.sh
  34. elif [ "${shortname}" == "etl" ]; then
  35. update_etl.sh
  36. else
  37. update_steamcmd.sh
  38. fi
  39. core_exit.sh