command_install.sh 938 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. # Download and install
  11. if [ "${gamename}" == "Unreal Tournament 2004" ]; then
  12. install_dl_ut2k4.sh
  13. install_ut2k4.sh
  14. install_ut2k4_key.sh
  15. elif [ "${gamename}" == "Unreal Tournament 99" ]; then
  16. install_dl_ut99.sh
  17. install_ut99.sh
  18. elif [ "${gamename}" == "Teamspeak 3" ]; then
  19. install_ts3.sh
  20. elif [ ! -z "${appid}" ]; then
  21. install_steamcmd.sh
  22. install_serverfiles.sh
  23. fi
  24. # Configuration
  25. fix.sh
  26. install_logs.sh
  27. install_gsquery.sh
  28. install_config.sh
  29. if [ "${gamename}" == "Counter Strike: Global Offensive" ]||[ "${gamename}" == "Team Fortress 2" ]||[ "${gamename}" == "BrainBread 2" ]; then
  30. install_gslt.sh
  31. elif [ "${gamename}" == "Teamspeak 3" ]; then
  32. install_ts3db.sh
  33. fi
  34. install_complete.sh