Browse Source

Optimised function

pull/743/head
Daniel Gibbs 9 years ago
parent
commit
364856e819
  1. 23
      functions/install_gslt.sh

23
functions/install_gslt.sh

@ -2,41 +2,34 @@
# LGSM install_gslt.sh function # LGSM install_gslt.sh function
# Author: Daniel Gibbs # Author: Daniel Gibbs
# Website: http://gameservermanagers.com # Website: http://gameservermanagers.com
lgsm_version="271215" lgsm_version="270216"
# Description: Configures GSLT. # Description: Configures GSLT.
if [ -z "${autoinstall}" ]; then
echo "" echo ""
echo "Game Server Login Token" echo "Game Server Login Token"
echo "============================" echo "============================"
sleep 1 sleep 1
if [ "${gamename}" == "Counter Strike: Global Offensive" ]; then if [ "${gamename}" == "Counter Strike: Global Offensive" ]; then
echo "GSLT is required to run a public ${gamename} server" echo "GSLT is required to run a public ${gamename} server"
fn_scriptlog "GSLT is required to run a public ${gamename} server"
else else
echo "GSLT is an optional feature for ${gamename} server" echo "GSLT is an optional feature for ${gamename} server"
fn_scriptlog "GSLT is an optional feature for ${gamename} server"
fi fi
echo "Get more info and a token here:" echo "Get more info and a token here:"
echo "http://gameservermanagers.com/gslt" echo "http://gameservermanagers.com/gslt"
fn_scriptlog "Get more info and a token here:"
fn_scriptlog "http://gameservermanagers.com/gslt"
echo "" echo ""
if [ -z "${autoinstall}" ]; then
echo "Enter token below (Can be blank)." echo "Enter token below (Can be blank)."
echo -n "GSLT TOKEN: " echo -n "GSLT TOKEN: "
read token read token
sed -i -e "s/gslt=\"\"/gslt=\"${token}\"/g" "${rootdir}/${selfname}" sed -i -e "s/gslt=\"\"/gslt=\"${token}\"/g" "${rootdir}/${selfname}"
sleep 1
echo "The GSLT can be changed by editing ${selfname}."
echo ""
else
if [ "${gamename}" == "Counter Strike: Global Offensive" ]; then
fn_printinfomationnl "GSLT is required to run a public ${gamename} server"
else
fn_printinfomationnl "GSLT is an optional feature for ${gamename} server"
fi fi
echo "Get more info and a token here:"
echo "http://gameservermanagers.com/gslt"
echo ""
sleep 1 sleep 1
echo "The GSLT can be changed by editing ${selfname}." echo "The GSLT can be changed by editing ${selfname}."
sleep 1 fn_scriptlog "The GSLT can be changed by editing ${selfname}."
fi echo ""
Loading…
Cancel
Save