command_install.sh 1.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. #!/bin/bash
  2. # LinuxGSM command_install.sh function
  3. # Author: Daniel Gibbs
  4. # Contributor: UltimateByte
  5. # Website: https://linuxgsm.com
  6. # Description: Overall function for the installer.
  7. local commandname="INSTALL"
  8. local commandaction="Install"
  9. 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. installflag=1
  16. # Download and install
  17. if [ "${gamename}" == "Unreal Tournament 2004" ]; then
  18. install_server_files.sh
  19. install_ut2k4_key.sh
  20. elif [ -z "${appid}" ]; then
  21. installer=1
  22. install_server_files.sh
  23. elif [ -n "${appid}" ]; then
  24. install_steamcmd.sh
  25. install_server_files.sh
  26. fi
  27. # Configuration
  28. install_config.sh
  29. if [ "${gamename}" == "BrainBread 2" ]||[ "${gamename}" == "Black Mesa: Deathmatch" ]||[ "${gamename}" == "Counter-Strike: Global Offensive" ]||[ "${gamename}" == "Empires Mod" ]||[ "${gamename}" == "Garry’s Mod" ]||[ "${gamename}" == "No more Room in Hell" ]||[ "${gamename}" == "Team Fortress 2" ]||[ "${gamename}" == "Tower Unite" ]; then
  30. install_gslt.sh
  31. elif [ "${gamename}" == "Don't Starve Together" ]; then
  32. install_dst_token.sh
  33. elif [ "${gamename}" == "Squad" ]; then
  34. install_squad_license.sh
  35. elif [ "${gamename}" == "TeamSpeak 3" ]; then
  36. install_ts3db.sh
  37. elif [ "${gamename}" == "Multi Theft Auto" ]; then
  38. command_install_resources_mta.sh
  39. fi
  40. fix.sh
  41. install_complete.sh
  42. core_exit.sh