install_gslt.sh 1.1 KB

12345678910111213141516171819202122232425262728293031323334353637
  1. #!/bin/bash
  2. # LGSM install_gslt.sh function
  3. # Author: Daniel Gibbs
  4. # Website: http://gameservermanagers.com
  5. lgsm_version="270216"
  6. # Description: Configures GSLT.
  7. local modulename="Install"
  8. echo ""
  9. echo "Game Server Login Token"
  10. echo "============================"
  11. sleep 1
  12. if [ "${gamename}" == "Counter Strike: Global Offensive" ]; then
  13. echo "GSLT is required to run a public ${gamename} server"
  14. fn_scriptlog "GSLT is required to run a public ${gamename} server"
  15. else
  16. echo "GSLT is an optional feature for ${gamename} server"
  17. fn_scriptlog "GSLT is an optional feature for ${gamename} server"
  18. fi
  19. echo "Get more info and a token here:"
  20. echo "http://gameservermanagers.com/gslt"
  21. fn_scriptlog "Get more info and a token here:"
  22. fn_scriptlog "http://gameservermanagers.com/gslt"
  23. echo ""
  24. if [ -z "${autoinstall}" ]; then
  25. echo "Enter token below (Can be blank)."
  26. echo -n "GSLT TOKEN: "
  27. read token
  28. sed -i -e "s/gslt=\"\"/gslt=\"${token}\"/g" "${rootdir}/${selfname}"
  29. fi
  30. sleep 1
  31. echo "The GSLT can be changed by editing ${selfname}."
  32. fn_scriptlog "The GSLT can be changed by editing ${selfname}."
  33. echo ""