|
@@ -5,7 +5,9 @@
|
|
|
# Version: 220315
|
|
# Version: 220315
|
|
|
|
|
|
|
|
fn_arma3config(){
|
|
fn_arma3config(){
|
|
|
-cp -v lgsm-default.cfg "${servercfgfullpath}"
|
|
|
|
|
|
|
+mkdir -pv "${servercfgdir}"
|
|
|
|
|
+mv -v lgsm-default.server.cfg "${servercfgfullpath}"
|
|
|
|
|
+mv -v lgsm-default.network.cfg "${networkcfgfullpath}"
|
|
|
sleep 1
|
|
sleep 1
|
|
|
echo ""
|
|
echo ""
|
|
|
}
|
|
}
|
|
@@ -131,47 +133,53 @@ echo ""
|
|
|
echo "Creating Configs"
|
|
echo "Creating Configs"
|
|
|
echo "================================="
|
|
echo "================================="
|
|
|
sleep 1
|
|
sleep 1
|
|
|
-cd "${servercfgdir}"
|
|
|
|
|
|
|
+if [ "${gamename}" == "ARMA 3" ]; then
|
|
|
|
|
+ cd "${systemdir}"
|
|
|
|
|
+else
|
|
|
|
|
+ cd "${servercfgdir}"
|
|
|
|
|
+fi
|
|
|
|
|
+ #statements
|
|
|
if [ "${gamename}" == "7 Days To Die" ]; then
|
|
if [ "${gamename}" == "7 Days To Die" ]; then
|
|
|
fn_unity3dconfig
|
|
fn_unity3dconfig
|
|
|
elif [ "${gamename}" == "ARMA 3" ]; then
|
|
elif [ "${gamename}" == "ARMA 3" ]; then
|
|
|
- echo -e "downloading lgsm-default.cfg...\c"
|
|
|
|
|
- wget -N --no-check-certificate /dev/null https://raw.githubusercontent.com/dgibbs64/linuxgameservers/master/Arma3/cfg/lgsm-default.cfg 2>&1 | grep -F HTTP | cut -c45- | uniq
|
|
|
|
|
|
|
+ echo -e "downloading lgsm-default.server.cfg & lgsm-default.network.cfg...\c"
|
|
|
|
|
+ wget -N --no-check-certificate /dev/null https://raw.githubusercontent.com/dgibbs64/linuxgsm/master/Arma3/cfg/lgsm-default.server.cfg 2>&1 | grep -F HTTP | cut -c45- | uniq
|
|
|
|
|
+ wget -N --no-check-certificate /dev/null https://raw.githubusercontent.com/dgibbs64/linuxgsm/master/Arma3/cfg/lgsm-default.network.cfg 2>&1 | grep -F HTTP | cut -c45- | uniq
|
|
|
sleep 1
|
|
sleep 1
|
|
|
fn_arma3config
|
|
fn_arma3config
|
|
|
elif [ "${gamename}" == "Blade Symphony" ]; then
|
|
elif [ "${gamename}" == "Blade Symphony" ]; then
|
|
|
echo -e "downloading lgsm-default.cfg...\c"
|
|
echo -e "downloading lgsm-default.cfg...\c"
|
|
|
- wget -N --no-check-certificate /dev/null https://raw.githubusercontent.com/dgibbs64/linuxgameservers/master/BladeSymphony/cfg/lgsm-default.cfg 2>&1 | grep -F HTTP | cut -c45- | uniq
|
|
|
|
|
|
|
+ wget -N --no-check-certificate /dev/null https://raw.githubusercontent.com/dgibbs64/linuxgsm/master/BladeSymphony/cfg/lgsm-default.cfg 2>&1 | grep -F HTTP | cut -c45- | uniq
|
|
|
sleep 1
|
|
sleep 1
|
|
|
fn_goldsourceconfig
|
|
fn_goldsourceconfig
|
|
|
elif [ "${gamename}" == "Counter Strike 1.6" ]; then
|
|
elif [ "${gamename}" == "Counter Strike 1.6" ]; then
|
|
|
echo -e "downloading lgsm-default.cfg...\c"
|
|
echo -e "downloading lgsm-default.cfg...\c"
|
|
|
- wget -N --no-check-certificate /dev/null https://raw.githubusercontent.com/dgibbs64/linuxgameservers/master/CounterStrike/cfg/lgsm-default.cfg 2>&1 | grep -F HTTP | cut -c45- | uniq
|
|
|
|
|
|
|
+ wget -N --no-check-certificate /dev/null https://raw.githubusercontent.com/dgibbs64/linuxgsm/master/CounterStrike/cfg/lgsm-default.cfg 2>&1 | grep -F HTTP | cut -c45- | uniq
|
|
|
sleep 1
|
|
sleep 1
|
|
|
fn_goldsourceconfig
|
|
fn_goldsourceconfig
|
|
|
elif [ "${gamename}" == "Counter Strike: Condition Zero" ]; then
|
|
elif [ "${gamename}" == "Counter Strike: Condition Zero" ]; then
|
|
|
echo -e "downloading lgsm-default.cfg...\c"
|
|
echo -e "downloading lgsm-default.cfg...\c"
|
|
|
- wget -N --no-check-certificate /dev/null https://raw.githubusercontent.com/dgibbs64/linuxgameservers/master/CounterStrikeConditionZero/cfg/lgsm-default.cfg 2>&1 | grep -F HTTP | cut -c45- | uniq
|
|
|
|
|
|
|
+ wget -N --no-check-certificate /dev/null https://raw.githubusercontent.com/dgibbs64/linuxgsm/master/CounterStrikeConditionZero/cfg/lgsm-default.cfg 2>&1 | grep -F HTTP | cut -c45- | uniq
|
|
|
sleep 1
|
|
sleep 1
|
|
|
fn_goldsourceconfig
|
|
fn_goldsourceconfig
|
|
|
elif [ "${gamename}" == "Counter Strike: Global Offensive" ]; then
|
|
elif [ "${gamename}" == "Counter Strike: Global Offensive" ]; then
|
|
|
echo -e "downloading lgsm-default.cfg...\c"
|
|
echo -e "downloading lgsm-default.cfg...\c"
|
|
|
- wget -N --no-check-certificate /dev/null https://raw.githubusercontent.com/dgibbs64/linuxgameservers/master/CounterStrikeGlobalOffensive/cfg/lgsm-default.cfg 2>&1 | grep -F HTTP | cut -c45- | uniq
|
|
|
|
|
|
|
+ wget -N --no-check-certificate /dev/null https://raw.githubusercontent.com/dgibbs64/linuxgsm/master/CounterStrikeGlobalOffensive/cfg/lgsm-default.cfg 2>&1 | grep -F HTTP | cut -c45- | uniq
|
|
|
sleep 1
|
|
sleep 1
|
|
|
fn_sourceconfig
|
|
fn_sourceconfig
|
|
|
elif [ "${gamename}" == "Counter Strike: Source" ]; then
|
|
elif [ "${gamename}" == "Counter Strike: Source" ]; then
|
|
|
echo -e "downloading lgsm-default.cfg...\c"
|
|
echo -e "downloading lgsm-default.cfg...\c"
|
|
|
- wget -N --no-check-certificate /dev/null https://raw.githubusercontent.com/dgibbs64/linuxgameservers/master/CounterStrikeSource/cfg/lgsm-default.cfg 2>&1 | grep -F HTTP | cut -c45- | uniq
|
|
|
|
|
|
|
+ wget -N --no-check-certificate /dev/null https://raw.githubusercontent.com/dgibbs64/linuxgsm/master/CounterStrikeSource/cfg/lgsm-default.cfg 2>&1 | grep -F HTTP | cut -c45- | uniq
|
|
|
sleep 1
|
|
sleep 1
|
|
|
fn_sourceconfig
|
|
fn_sourceconfig
|
|
|
elif [ "${gamename}" == "Day of Defeat" ]; then
|
|
elif [ "${gamename}" == "Day of Defeat" ]; then
|
|
|
echo -e "downloading lgsm-default.cfg...\c"
|
|
echo -e "downloading lgsm-default.cfg...\c"
|
|
|
- wget -N --no-check-certificate /dev/null https://raw.githubusercontent.com/dgibbs64/linuxgameservers/master/DayOfDefeat/cfg/lgsm-default.cfg 2>&1 | grep -F HTTP | cut -c45- | uniq
|
|
|
|
|
|
|
+ wget -N --no-check-certificate /dev/null https://raw.githubusercontent.com/dgibbs64/linuxgsm/master/DayOfDefeat/cfg/lgsm-default.cfg 2>&1 | grep -F HTTP | cut -c45- | uniq
|
|
|
sleep 1
|
|
sleep 1
|
|
|
fn_goldsourceconfig
|
|
fn_goldsourceconfig
|
|
|
elif [ "${gamename}" == "Day of Defeat: Source" ]; then
|
|
elif [ "${gamename}" == "Day of Defeat: Source" ]; then
|
|
|
echo -e "downloading lgsm-default.cfg...\c"
|
|
echo -e "downloading lgsm-default.cfg...\c"
|
|
|
- wget -N --no-check-certificate /dev/null https://raw.githubusercontent.com/dgibbs64/linuxgameservers/master/DayOfDefeatSource/cfg/lgsm-default.cfg 2>&1 | grep -F HTTP | cut -c45- | uniq
|
|
|
|
|
|
|
+ wget -N --no-check-certificate /dev/null https://raw.githubusercontent.com/dgibbs64/linuxgsm/master/DayOfDefeatSource/cfg/lgsm-default.cfg 2>&1 | grep -F HTTP | cut -c45- | uniq
|
|
|
sleep 1
|
|
sleep 1
|
|
|
fn_sourceconfig
|
|
fn_sourceconfig
|
|
|
elif [ "${gamename}" == "Double Action: Boogaloo" ]; then
|
|
elif [ "${gamename}" == "Double Action: Boogaloo" ]; then
|
|
@@ -181,27 +189,27 @@ elif [ "${gamename}" == "Double Action: Boogaloo" ]; then
|
|
|
fn_sourceconfig
|
|
fn_sourceconfig
|
|
|
elif [ "${gamename}" == "Fistful of Frags" ]; then
|
|
elif [ "${gamename}" == "Fistful of Frags" ]; then
|
|
|
echo -e "downloading lgsm-default.cfg...\c"
|
|
echo -e "downloading lgsm-default.cfg...\c"
|
|
|
- wget -N --no-check-certificate /dev/null https://raw.githubusercontent.com/dgibbs64/linuxgameservers/master/FistfulOfFrags/cfg/lgsm-default.cfg 2>&1 | grep -F HTTP | cut -c45- | uniq
|
|
|
|
|
|
|
+ wget -N --no-check-certificate /dev/null https://raw.githubusercontent.com/dgibbs64/linuxgsm/master/FistfulOfFrags/cfg/lgsm-default.cfg 2>&1 | grep -F HTTP | cut -c45- | uniq
|
|
|
sleep 1
|
|
sleep 1
|
|
|
fn_sourceconfig
|
|
fn_sourceconfig
|
|
|
elif [ "${gamename}" == "Garry's Mod" ]; then
|
|
elif [ "${gamename}" == "Garry's Mod" ]; then
|
|
|
echo -e "downloading lgsm-default.cfg...\c"
|
|
echo -e "downloading lgsm-default.cfg...\c"
|
|
|
- wget -N --no-check-certificate /dev/null https://raw.githubusercontent.com/dgibbs64/linuxgameservers/master/GarrysMod/cfg/lgsm-default.cfg 2>&1 | grep -F HTTP | cut -c45- | uniq
|
|
|
|
|
|
|
+ wget -N --no-check-certificate /dev/null https://raw.githubusercontent.com/dgibbs64/linuxgsm/master/GarrysMod/cfg/lgsm-default.cfg 2>&1 | grep -F HTTP | cut -c45- | uniq
|
|
|
sleep 1
|
|
sleep 1
|
|
|
fn_sourceconfig
|
|
fn_sourceconfig
|
|
|
elif [ "${gamename}" == "Half Life 2: Deathmatch" ]; then
|
|
elif [ "${gamename}" == "Half Life 2: Deathmatch" ]; then
|
|
|
echo -e "downloading lgsm-default.cfg...\c"
|
|
echo -e "downloading lgsm-default.cfg...\c"
|
|
|
- wget -N --no-check-certificate /dev/null https://raw.githubusercontent.com/dgibbs64/linuxgameservers/master/HalfLife2Deathmatch/cfg/lgsm-default.cfg 2>&1 | grep -F HTTP | cut -c45- | uniq
|
|
|
|
|
|
|
+ wget -N --no-check-certificate /dev/null https://raw.githubusercontent.com/dgibbs64/linuxgsm/master/HalfLife2Deathmatch/cfg/lgsm-default.cfg 2>&1 | grep -F HTTP | cut -c45- | uniq
|
|
|
sleep 1
|
|
sleep 1
|
|
|
fn_sourceconfig
|
|
fn_sourceconfig
|
|
|
elif [ "${gamename}" == "Half Life: Deathmatch Classic" ]; then
|
|
elif [ "${gamename}" == "Half Life: Deathmatch Classic" ]; then
|
|
|
echo -e "downloading lgsm-default.cfg...\c"
|
|
echo -e "downloading lgsm-default.cfg...\c"
|
|
|
- wget -N --no-check-certificate /dev/null https://raw.githubusercontent.com/dgibbs64/linuxgameservers/master/HalfLifeDeathmatchClassic/cfg/lgsm-default.cfg 2>&1 | grep -F HTTP | cut -c45- | uniq
|
|
|
|
|
|
|
+ wget -N --no-check-certificate /dev/null https://raw.githubusercontent.com/dgibbs64/linuxgsm/master/HalfLifeDeathmatchClassic/cfg/lgsm-default.cfg 2>&1 | grep -F HTTP | cut -c45- | uniq
|
|
|
sleep 1
|
|
sleep 1
|
|
|
fn_goldsourceconfig
|
|
fn_goldsourceconfig
|
|
|
elif [ "${gamename}" == "Insurgency" ]; then
|
|
elif [ "${gamename}" == "Insurgency" ]; then
|
|
|
echo -e "downloading lgsm-default.cfg...\c"
|
|
echo -e "downloading lgsm-default.cfg...\c"
|
|
|
- wget -N --no-check-certificate /dev/null https://raw.githubusercontent.com/dgibbs64/linuxgameservers/master/Insurgency/cfg/lgsm-default.cfg 2>&1 | grep -F HTTP | cut -c45- | uniq
|
|
|
|
|
|
|
+ wget -N --no-check-certificate /dev/null https://raw.githubusercontent.com/dgibbs64/linuxgsm/master/Insurgency/cfg/lgsm-default.cfg 2>&1 | grep -F HTTP | cut -c45- | uniq
|
|
|
sleep 1
|
|
sleep 1
|
|
|
fn_sourceconfig
|
|
fn_sourceconfig
|
|
|
elif [ "${gamename}" == "Just Cause 2" ]; then
|
|
elif [ "${gamename}" == "Just Cause 2" ]; then
|
|
@@ -210,17 +218,17 @@ elif [ "${gamename}" == "Killing Floor" ]; then
|
|
|
fn_unreal2config
|
|
fn_unreal2config
|
|
|
elif [ "${gamename}" == "Left 4 Dead" ]; then
|
|
elif [ "${gamename}" == "Left 4 Dead" ]; then
|
|
|
echo -e "downloading lgsm-default.cfg...\c"
|
|
echo -e "downloading lgsm-default.cfg...\c"
|
|
|
- wget -N --no-check-certificate /dev/null https://raw.githubusercontent.com/dgibbs64/linuxgameservers/master/Left4Dead/cfg/lgsm-default.cfg 2>&1 | grep -F HTTP | cut -c45- | uniq
|
|
|
|
|
|
|
+ wget -N --no-check-certificate /dev/null https://raw.githubusercontent.com/dgibbs64/linuxgsm/master/Left4Dead/cfg/lgsm-default.cfg 2>&1 | grep -F HTTP | cut -c45- | uniq
|
|
|
sleep 1
|
|
sleep 1
|
|
|
fn_sourceconfig
|
|
fn_sourceconfig
|
|
|
elif [ "${gamename}" == "Left 4 Dead 2" ]; then
|
|
elif [ "${gamename}" == "Left 4 Dead 2" ]; then
|
|
|
echo -e "downloading lgsm-default.cfg...\c"
|
|
echo -e "downloading lgsm-default.cfg...\c"
|
|
|
- wget -N --no-check-certificate /dev/null https://raw.githubusercontent.com/dgibbs64/linuxgameservers/master/Left4Dead2/cfg/lgsm-default.cfg 2>&1 | grep -F HTTP | cut -c45- | uniq
|
|
|
|
|
|
|
+ wget -N --no-check-certificate /dev/null https://raw.githubusercontent.com/dgibbs64/linuxgsm/master/Left4Dead2/cfg/lgsm-default.cfg 2>&1 | grep -F HTTP | cut -c45- | uniq
|
|
|
sleep 1
|
|
sleep 1
|
|
|
fn_sourceconfig
|
|
fn_sourceconfig
|
|
|
elif [ "${gamename}" == "No More Room in Hell" ]; then
|
|
elif [ "${gamename}" == "No More Room in Hell" ]; then
|
|
|
echo -e "downloading lgsm-default.cfg...\c"
|
|
echo -e "downloading lgsm-default.cfg...\c"
|
|
|
- wget -N --no-check-certificate /dev/null https://raw.githubusercontent.com/dgibbs64/linuxgameservers/master/NoMoreRoomInHell/cfg/lgsm-default.cfg 2>&1 | grep -F HTTP | cut -c45- | uniq
|
|
|
|
|
|
|
+ wget -N --no-check-certificate /dev/null https://raw.githubusercontent.com/dgibbs64/linuxgsm/master/NoMoreRoomInHell/cfg/lgsm-default.cfg 2>&1 | grep -F HTTP | cut -c45- | uniq
|
|
|
sleep 1
|
|
sleep 1
|
|
|
fn_sourceconfig
|
|
fn_sourceconfig
|
|
|
elif [ "${gamename}" == "Natural Selection 2" ]; then
|
|
elif [ "${gamename}" == "Natural Selection 2" ]; then
|
|
@@ -231,17 +239,17 @@ elif [ "${gamename}" == "Red Orchestra: Ostfront 41-45" ]; then
|
|
|
fn_unreal2config
|
|
fn_unreal2config
|
|
|
elif [ "${gamename}" == "Serious Sam 3: BFE" ]; then
|
|
elif [ "${gamename}" == "Serious Sam 3: BFE" ]; then
|
|
|
echo -e "downloading lgsm-default.ini...\c"
|
|
echo -e "downloading lgsm-default.ini...\c"
|
|
|
- wget -N --no-check-certificate /dev/null https://raw.githubusercontent.com/dgibbs64/linuxgameservers/master/SeriousSam3BFE/cfg/lgsm-default.ini 2>&1 | grep -F HTTP | cut -c45- | uniq
|
|
|
|
|
|
|
+ wget -N --no-check-certificate /dev/null https://raw.githubusercontent.com/dgibbs64/linuxgsm/master/SeriousSam3BFE/cfg/lgsm-default.ini 2>&1 | grep -F HTTP | cut -c45- | uniq
|
|
|
sleep 1
|
|
sleep 1
|
|
|
fn_serious3config
|
|
fn_serious3config
|
|
|
elif [ "${gamename}" == "Team Fortress 2" ]; then
|
|
elif [ "${gamename}" == "Team Fortress 2" ]; then
|
|
|
echo -e "downloading lgsm-default.cfg...\c"
|
|
echo -e "downloading lgsm-default.cfg...\c"
|
|
|
- wget -N --no-check-certificate /dev/null https://raw.githubusercontent.com/dgibbs64/linuxgameservers/master/TeamFortress2/cfg/lgsm-default.cfg 2>&1 | grep -F HTTP | cut -c45- | uniq
|
|
|
|
|
|
|
+ wget -N --no-check-certificate /dev/null https://raw.githubusercontent.com/dgibbs64/linuxgsm/master/TeamFortress2/cfg/lgsm-default.cfg 2>&1 | grep -F HTTP | cut -c45- | uniq
|
|
|
sleep 1
|
|
sleep 1
|
|
|
fn_sourceconfig
|
|
fn_sourceconfig
|
|
|
elif [ "${gamename}" == "Team Fortress Classic" ]; then
|
|
elif [ "${gamename}" == "Team Fortress Classic" ]; then
|
|
|
echo -e "downloading lgsm-default.cfg...\c"
|
|
echo -e "downloading lgsm-default.cfg...\c"
|
|
|
- wget -N --no-check-certificate /dev/null https://raw.githubusercontent.com/dgibbs64/linuxgameservers/master/TeamFortressClassic/cfg/lgsm-default.cfg 2>&1 | grep -F HTTP | cut -c45- | uniq
|
|
|
|
|
|
|
+ wget -N --no-check-certificate /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}" == "Unreal Tournament 2004" ]; then
|
|
elif [ "${gamename}" == "Unreal Tournament 2004" ]; then
|