Browse Source

Added support for ARMA 3 server

pull/254/merge
Daniel Gibbs 10 years ago
parent
commit
77671eb07c
  1. 3
      functions/fn_header
  2. 29
      functions/fn_serverconfig

3
functions/fn_header

@ -9,6 +9,9 @@ echo "================================="
echo "${gamename}"
echo "Linux Game Server Manager"
echo "by Daniel Gibbs"
if [ "${gamename}" == "ARMA 3" ]; then
echo "contributions by Scarsz"
fi
echo "http://danielgibbs.co.uk"
echo "================================="
echo ""

29
functions/fn_serverconfig

@ -2,13 +2,18 @@
# LGSM fn_serverconfig function
# Author: Daniel Gibbs
# Website: http://danielgibbs.co.uk
# Version: 291114
# Version: 011214
echo "Downloading lgsm-default.cfg"
fn_arma3config(){
echo ""
echo "Loading Configs"
echo "================================="
sleep 1
cd "${servercfgdir}"
wget --no-check-certificate -nv -N https://raw.githubusercontent.com/dgibbs64/linuxgameservers/master/CounterStrikeSource/cfg/lgsm-config.cfg
cp -v lgsm-default.cfg ${servercfgfullpath}
sleep 1
}
fn_sourceconfig(){
echo ""
echo "Loading Configs"
echo "================================="
@ -35,4 +40,18 @@ else
rconpass="${rconpass}"
fi
sed -i "s/\"hostname\"/\"${servername}\"/g" ${servercfgfullpath}
sed -i "s/\"rconpassword\"/\"${rconpass}\"/g" ${servercfgfullpath}
sed -i "s/\"rconpassword\"/\"${rconpass}\"/g" ${servercfgfullpath}
}
echo "Downloading lgsm-default.cfg"
echo "================================="
sleep 1
cd "${servercfgdir}"
if [ "${gamename}" == "ARMA 3" ]; then
wget --no-check-certificate -nv -N https://raw.githubusercontent.com/dgibbs64/linuxgameservers/master/Arma3/lgsm-config.cfg
fn_arma3config
elif [ "${gamename}" == "Counter Strike: Source" ]; then
wget --no-check-certificate -nv -N https://raw.githubusercontent.com/dgibbs64/linuxgameservers/master/CounterStrikeSource/cfg/lgsm-config.cfg
fn_sourceconfig
fi
Loading…
Cancel
Save