command_install.sh 1.2 KB

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