command_update.sh 485 B

123456789101112131415161718192021
  1. #!/bin/bash
  2. # LGSM commanf_update.sh function
  3. # Author: Daniel Gibbs
  4. # Website: https://gameservermanagers.com
  5. lgsm_version="210516"
  6. # Description:Hangles updating of servers.
  7. local modulename="Update"
  8. function_selfname="$(basename $(readlink -f "${BASH_SOURCE[0]}"))"
  9. check.sh
  10. fn_print_dots "Checking for update"
  11. if [ "${gamename}" == "Teamspeak 3" ]; then
  12. update_ts3.sh
  13. elif [ "${engine}" == "goldsource" ]||[ "${forceupdate}" == "1" ]; then
  14. update_steamcmd.sh
  15. fi
  16. core_exit.sh