Explorar el Código

Added installer instuctions for GSLT

Daniel Gibbs hace 10 años
padre
commit
ee9885fb01
Se han modificado 2 ficheros con 26 adiciones y 1 borrados
  1. 2 1
      functions/fn_install
  2. 24 0
      functions/fn_install_gslt

+ 2 - 1
functions/fn_install

@@ -2,7 +2,7 @@
 # LGSM fn_install function
 # Author: Daniel Gibbs
 # Website: http://gameservermanagers.com
-# Version: 190515
+# Version: 091215
 
 fn_check_root
 fn_install_header
@@ -33,6 +33,7 @@ fn_install_gsquery
 fn_install_config
 if [ "${gamename}" == "Counter Strike: Global Offensive" ]; then
 	fn_csgofix
+	fn_install_gslt
 elif [ "${gamename}" == "Killing Floor" ]; then
 	fn_install_kffix
 elif [ "${gamename}" == "Red Orchestra: Ostfront 41-45" ]; then

+ 24 - 0
functions/fn_install_gslt

@@ -0,0 +1,24 @@
+#!/bin/bash
+# LGSM fn_install_gslt function
+# Author: Daniel Gibbs
+# Website: http://gameservermanagers.com
+# Version: 091215
+
+echo ""
+echo "Game Server Login Token"
+echo "============================"
+sleep 1
+if [ "${gamename}" == "Counter Strike: Global Offensive" ]; then
+	echo "GSLT is required to run a public ${gamename} server"
+else
+	echo "GSLT is an optional feature when ${gamename} server"
+fi
+
+echo "Get more infomation and a token here:"
+echo "http://gameservermanagers.com/gslt"
+echo ""
+echo "Enter token below"
+echo -n "TOKEN: "
+read token
+sed -i -e "s/gslt=\"\"/gslt=\"${token}\"/g" > "${selfname}"
+echo ""