command_install.sh 952 B

1234567891011121314151617181920212223242526272829303132333435363738
  1. #!/bin/bash
  2. # LGSM fn_install function
  3. # Author: Daniel Gibbs
  4. # Website: http://gameservermanagers.com
  5. lgsm_version="271215"
  6. function_selfname="$(basename $(readlink -f "${BASH_SOURCE[0]}"))"
  7. check.sh
  8. install_header.sh
  9. install_serverdir.sh
  10. install_logs.sh
  11. check_deps.sh
  12. # Download and install
  13. if [ "${gamename}" == "Unreal Tournament 2004" ]; then
  14. install_dl_ut2k4.sh
  15. install_ut2k4.sh
  16. install_ut2k4_key.sh
  17. elif [ "${gamename}" == "Unreal Tournament 99" ]; then
  18. install_dl_ut99.sh
  19. install_ut99.sh
  20. elif [ "${gamename}" == "Teamspeak 3" ]; then
  21. install_ts3.sh
  22. elif [ ! -z "${appid}" ]; then
  23. install_steamcmd.sh
  24. install_serverfiles.sh
  25. fi
  26. # Configuration
  27. fix.sh
  28. install_gsquery.sh
  29. install_config.sh
  30. if [ "${gamename}" == "Counter Strike: Global Offensive" ]||[ "${gamename}" == "Team Fortress 2" ]||[ "${gamename}" == "BrainBread 2" ]; then
  31. install_gslt.sh
  32. elif [ "${gamename}" == "Teamspeak 3" ]; then
  33. install_ts3db.sh
  34. fi
  35. install_complete.sh