command_check_update.sh 981 B

123456789101112131415161718192021222324252627282930313233343536373839
  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. else
  33. update_steamcmd.sh
  34. fi
  35. core_exit.sh