command_update.sh 910 B

1234567891011121314151617181920212223242526272829303132333435363738
  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}" == "mumble" ]; then
  22. update_mumble.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. else
  32. update_steamcmd.sh
  33. fi
  34. core_exit.sh