command_install.sh 968 B

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