4
0

install_gslt.sh 1.1 KB

1234567891011121314151617181920212223242526272829303132333435
  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. echo ""
  8. echo "Game Server Login Token"
  9. echo "============================"
  10. sleep 1
  11. if [ "${gamename}" == "Counter Strike: Global Offensive" ]; then
  12. echo "GSLT is required to run a public ${gamename} server"
  13. fn_scriptlog "GSLT is required to run a public ${gamename} server"
  14. else
  15. echo "GSLT is an optional feature for ${gamename} server"
  16. fn_scriptlog "GSLT is an optional feature for ${gamename} server"
  17. fi
  18. echo "Get more info and a token here:"
  19. echo "http://gameservermanagers.com/gslt"
  20. fn_scriptlog "Get more info and a token here:"
  21. fn_scriptlog "http://gameservermanagers.com/gslt"
  22. echo ""
  23. if [ -z "${autoinstall}" ]; then
  24. echo "Enter token below (Can be blank)."
  25. echo -n "GSLT TOKEN: "
  26. read token
  27. sed -i -e "s/gslt=\"\"/gslt=\"${token}\"/g" "${rootdir}/${selfname}"
  28. fi
  29. sleep 1
  30. echo "The GSLT can be changed by editing ${selfname}."
  31. fn_scriptlog "The GSLT can be changed by editing ${selfname}."
  32. echo ""