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. check_deps.sh
  11. # Download and install
  12. if [ "${gamename}" == "Unreal Tournament 2004" ]; then
  13. install_dl_ut2k4.sh
  14. install_ut2k4.sh
  15. install_ut2k4_key.sh
  16. elif [ "${gamename}" == "Unreal Tournament 99" ]; then
  17. install_dl_ut99.sh
  18. install_ut99.sh
  19. elif [ "${gamename}" == "Teamspeak 3" ]; then
  20. install_ts3.sh
  21. elif [ ! -z "${appid}" ]; then
  22. install_steamcmd.sh
  23. install_serverfiles.sh
  24. fi
  25. # Configuration
  26. fix.sh
  27. install_logs.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