command_install.sh 1008 B

1234567891011121314151617181920212223242526272829303132333435363738
  1. #!/bin/bash
  2. # LGSM command_install.sh function
  3. # Author: Daniel Gibbs
  4. # Website: https://gameservermanagers.com
  5. # Description: Overall function for the installer.
  6. local commandname="INSTALL"
  7. local commandaction="Install"
  8. local function_selfname="$(basename $(readlink -f "${BASH_SOURCE[0]}"))"
  9. check.sh
  10. install_header.sh
  11. install_server_dir.sh
  12. install_logs.sh
  13. check_deps.sh
  14. # Download and install
  15. if [ "${gamename}" == "Unreal Tournament 2004" ]; then
  16. install_server_files.sh
  17. install_ut2k4_key.sh
  18. elif [ "${gamename}" == "Unreal Tournament 99" ]||[ "${gamename}" == "Teamspeak 3" ]; then
  19. installer=1
  20. install_server_files.sh
  21. elif [ -n "${appid}" ]; then
  22. install_steamcmd.sh
  23. install_server_files.sh
  24. fi
  25. # Configuration
  26. install_config.sh
  27. if [ "${gamename}" == "Counter Strike: Global Offensive" ]||[ "${gamename}" == "Team Fortress 2" ]||[ "${gamename}" == "BrainBread 2" ]; then
  28. install_gslt.sh
  29. elif [ "${gamename}" == "Teamspeak 3" ]; then
  30. install_ts3db.sh
  31. fi
  32. fix.sh
  33. install_complete.sh
  34. core_exit.sh