|
@@ -2,7 +2,7 @@
|
|
|
# LGSM fn_install_config function
|
|
# LGSM fn_install_config function
|
|
|
# Author: Daniel Gibbs
|
|
# Author: Daniel Gibbs
|
|
|
# Website: http://gameservermanagers.com
|
|
# Website: http://gameservermanagers.com
|
|
|
-# Version: 090815
|
|
|
|
|
|
|
+# Version: 281015
|
|
|
|
|
|
|
|
fn_arkconfig(){
|
|
fn_arkconfig(){
|
|
|
echo "creating ${servercfg} config file."
|
|
echo "creating ${servercfg} config file."
|
|
@@ -116,6 +116,13 @@ sed -i "s/\"rconpassword\"/\"${rconpass}\"/g" "${servercfgfullpath}"
|
|
|
echo ""
|
|
echo ""
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
|
|
+fn_teeworldsconfig(){
|
|
|
|
|
+echo "creating ${servercfg} config file."
|
|
|
|
|
+cp -v "${servercfgdefault}" "${servercfgfullpath}"
|
|
|
|
|
+sleep 1
|
|
|
|
|
+echo ""
|
|
|
|
|
+}
|
|
|
|
|
+
|
|
|
fn_terrariaconfig(){
|
|
fn_terrariaconfig(){
|
|
|
echo "creating ${servercfg} config file."
|
|
echo "creating ${servercfg} config file."
|
|
|
cp -v "${servercfgdefault}" "${servercfgfullpath}"
|
|
cp -v "${servercfgdefault}" "${servercfgfullpath}"
|
|
@@ -329,6 +336,19 @@ elif [ "${gamename}" == "Team Fortress Classic" ]; then
|
|
|
wget -N /dev/null https://raw.githubusercontent.com/dgibbs64/linuxgsm/master/TeamFortressClassic/cfg/lgsm-default.cfg 2>&1 | grep -F HTTP | cut -c45- | uniq
|
|
wget -N /dev/null https://raw.githubusercontent.com/dgibbs64/linuxgsm/master/TeamFortressClassic/cfg/lgsm-default.cfg 2>&1 | grep -F HTTP | cut -c45- | uniq
|
|
|
sleep 1
|
|
sleep 1
|
|
|
fn_goldsourceconfig
|
|
fn_goldsourceconfig
|
|
|
|
|
+elif [ "${gamename}" == "Tee Worlds" ]; then
|
|
|
|
|
+ echo -e "downloading ctf.cfg...\c"
|
|
|
|
|
+ wget -N /dev/null https://raw.githubusercontent.com/dgibbs64/linuxgsm/master/Teeworlds/cfg/ctf.cfg 2>&1 | grep -F HTTP | cut -c45- | uniq
|
|
|
|
|
+ echo -e "downloading dm.cfg...\c"
|
|
|
|
|
+ wget -N /dev/null https://raw.githubusercontent.com/dgibbs64/linuxgsm/master/Teeworlds/cfg/dm.cfg 2>&1 | grep -F HTTP | cut -c45- | uniq
|
|
|
|
|
+ echo -e "downloading duel.cfg...\c"
|
|
|
|
|
+ wget -N /dev/null https://raw.githubusercontent.com/dgibbs64/linuxgsm/master/Teeworlds/cfg/duel.cfg 2>&1 | grep -F HTTP | cut -c45- | uniq
|
|
|
|
|
+ echo -e "downloading tdm.cfg...\c"
|
|
|
|
|
+ wget -N /dev/null https://raw.githubusercontent.com/dgibbs64/linuxgsm/master/Teeworlds/cfg/tdm.cfg 2>&1 | grep -F HTTP | cut -c45- | uniq
|
|
|
|
|
+ echo -e "downloading lgsm-default.cfg...\c"
|
|
|
|
|
+ wget -N /dev/null https://raw.githubusercontent.com/dgibbs64/linuxgsm/master/Teeworlds/cfg/lgsm-default.cfg 2>&1 | grep -F HTTP | cut -c45- | uniq
|
|
|
|
|
+ sleep 1
|
|
|
|
|
+ fn_teeworldsconfig
|
|
|
elif [ "${gamename}" == "Terraria" ]; then
|
|
elif [ "${gamename}" == "Terraria" ]; then
|
|
|
echo -e "downloading lgsm-default.txt...\c"
|
|
echo -e "downloading lgsm-default.txt...\c"
|
|
|
wget -N /dev/null https://raw.githubusercontent.com/dgibbs64/linuxgsm/master/Terraria/cfg/lgsm-default.txt 2>&1 | grep -F HTTP | cut -c45- | uniq
|
|
wget -N /dev/null https://raw.githubusercontent.com/dgibbs64/linuxgsm/master/Terraria/cfg/lgsm-default.txt 2>&1 | grep -F HTTP | cut -c45- | uniq
|