From c1ad3e6716dbb1da3ab3f66da74d1464d8b36101 Mon Sep 17 00:00:00 2001 From: Daniel Gibbs Date: Sat, 9 May 2015 20:49:00 +0100 Subject: [PATCH] added updateonstart variable this new variable will allow the script to check for updates when running the start command --- 7DaysToDie/sdtdserver | 5 +++-- Arma3/arma3server | 5 +++-- BladeSymphony/bsserver | 3 ++- CounterStrike/csserver | 3 ++- CounterStrikeConditionZero/csczserver | 3 ++- CounterStrikeGlobalOffensive/csgoserver | 3 ++- CounterStrikeSource/cssserver | 3 ++- DayOfDefeat/dodserver | 3 ++- DayOfDefeatSource/dodsserver | 3 ++- DeathmatchClassic/dmcserver | 3 ++- DoubleActionBoogaloo/dabserver | 3 ++- FistfulOfFrags/fofserver | 3 ++- GarrysMod/gmodserver | 3 ++- HalfLife2Deathmatch/hl2dmserver | 3 ++- HalfLifeDeathmatch/hldmserver | 3 ++- HalfLifeDeathmatchSource/hldmsserver | 3 ++- Insurgency/insserver | 3 ++- JustCause2/jc2server | 3 ++- KillingFloor/kfserver | 3 ++- Left4Dead/l4dserver | 3 ++- Left4Dead2/l4d2server | 3 ++- NS2Combat/ns2cserver | 3 ++- NaturalSelection2/ns2server | 3 ++- NoMoreRoomInHell/nmrihserver | 3 ++- OpposingForce/opforserver | 3 ++- ProjectZomboid/pzserver | 3 ++- RedOrchestra/roserver | 3 ++- Ricochet/ricochetserver | 3 ++- SeriousSam3BFE/ss3sserver | 3 ++- StarBound/sbserver | 3 ++- TeamFortress2/tf2server | 3 ++- TeamFortressClassic/tfcserver | 3 ++- TeamSpeak3/ts3server | 5 ++++- functions/fn_start | 17 ++++++++++++----- 34 files changed, 82 insertions(+), 40 deletions(-) diff --git a/7DaysToDie/sdtdserver b/7DaysToDie/sdtdserver index 7b31dce80..7413532ab 100644 --- a/7DaysToDie/sdtdserver +++ b/7DaysToDie/sdtdserver @@ -3,7 +3,7 @@ # Server Management Script # Author: Daniel Gibbs # Website: http://gameservermanagers.com -# Version: 030515 +# Version: 090515 #### Variables #### @@ -17,7 +17,8 @@ steamuser="username" steampass="password" # Start Variables -ip="0.0.0.0" # can leave to answer on any IP +ip="0.0.0.0" +updateonstart="no" # Mod Variables diff --git a/Arma3/arma3server b/Arma3/arma3server index bc8c297d8..feab9e5d1 100644 --- a/Arma3/arma3server +++ b/Arma3/arma3server @@ -4,7 +4,7 @@ # Author: Daniel Gibbs # Contributor: Scarsz # Website: http://gameservermanagers.com -# Version: 030515 +# Version: 090515 #### Variables #### @@ -17,8 +17,9 @@ email="email@example.com" steamuser="username" steampass="password" -# Server IP +# Start Variables ip="0.0.0.0" +updateonstart="no" fn_parms(){ parms="-netlog -ip=${ip} -cfg=${networkcfgfullpath} -config=${servercfgfullpath} -mod=${mods}" diff --git a/BladeSymphony/bsserver b/BladeSymphony/bsserver index 18735f9e6..5a7940c97 100644 --- a/BladeSymphony/bsserver +++ b/BladeSymphony/bsserver @@ -3,7 +3,7 @@ # Server Management Script # Author: Daniel Gibbs # Website: http://gameservermanagers.com -# Version: 030515 +# Version: 090515 #### Variables #### @@ -23,6 +23,7 @@ port="27015" sourcetvport="27020" clientport="27005" ip="0.0.0.0" +updateonstart="no" # https://developer.valvesoftware.com/wiki/Command_Line_Options#Source_Dedicated_Server fn_parms(){ diff --git a/CounterStrike/csserver b/CounterStrike/csserver index 83d39c4d3..7664e1c85 100644 --- a/CounterStrike/csserver +++ b/CounterStrike/csserver @@ -3,7 +3,7 @@ # Server Management Script # Author: Daniel Gibbs # Website: http://gameservermanagers.com -# Version: 030515 +# Version: 090515 #### Variables #### @@ -22,6 +22,7 @@ maxplayers="16" port="27015" clientport="27005" ip="0.0.0.0" +updateonstart="no" # https://developer.valvesoftware.com/wiki/Command_Line_Options#Command-line_parameters_2 fn_parms(){ diff --git a/CounterStrikeConditionZero/csczserver b/CounterStrikeConditionZero/csczserver index 98e1de402..a78fc5fa9 100644 --- a/CounterStrikeConditionZero/csczserver +++ b/CounterStrikeConditionZero/csczserver @@ -3,7 +3,7 @@ # Server Management Script # Author: Daniel Gibbs # Website: http://gameservermanagers.com -# Version: 030515 +# Version: 090515 #### Variables #### @@ -22,6 +22,7 @@ maxplayers="16" port="27015" clientport="27005" ip="0.0.0.0" +updateonstart="no" # https://developer.valvesoftware.com/wiki/Command_Line_Options#Command-line_parameters_2 fn_parms(){ diff --git a/CounterStrikeGlobalOffensive/csgoserver b/CounterStrikeGlobalOffensive/csgoserver index b026bd3dc..46b9be342 100644 --- a/CounterStrikeGlobalOffensive/csgoserver +++ b/CounterStrikeGlobalOffensive/csgoserver @@ -3,7 +3,7 @@ # Server Management Script # Author: Daniel Gibbs # Website: http://gameservermanagers.com -# Version: 030515 +# Version: 090515 #### Variables #### @@ -34,6 +34,7 @@ port="27015" sourcetvport="27020" clientport="27005" ip="0.0.0.0" +updateonstart="no" # Optional: Workshop Parameters # https://developer.valvesoftware.com/wiki/CSGO_Workshop_For_Server_Operators # To get an authkey visit - http://steamcommunity.com/dev/apikey diff --git a/CounterStrikeSource/cssserver b/CounterStrikeSource/cssserver index 7b15c2a60..30a359787 100644 --- a/CounterStrikeSource/cssserver +++ b/CounterStrikeSource/cssserver @@ -3,7 +3,7 @@ # Server Management Script # Author: Daniel Gibbs # Website: http://gameservermanagers.com -# Version: 030515 +# Version: 090515 #### Variables #### @@ -23,6 +23,7 @@ port="27015" sourcetvport="27020" clientport="27005" ip="0.0.0.0" +updateonstart="no" # https://developer.valvesoftware.com/wiki/Command_Line_Options#Source_Dedicated_Server fn_parms(){ diff --git a/DayOfDefeat/dodserver b/DayOfDefeat/dodserver index 910c771db..a360939a4 100644 --- a/DayOfDefeat/dodserver +++ b/DayOfDefeat/dodserver @@ -3,7 +3,7 @@ # Server Management Script # Author: Daniel Gibbs # Website: http://gameservermanagers.com -# Version: 030515 +# Version: 090515 #### Variables #### @@ -22,6 +22,7 @@ maxplayers="16" port="27015" clientport="27005" ip="0.0.0.0" +updateonstart="no" # https://developer.valvesoftware.com/wiki/Command_Line_Options#Command-line_parameters_2 fn_parms(){ diff --git a/DayOfDefeatSource/dodsserver b/DayOfDefeatSource/dodsserver index 76a1db9d0..10624293a 100644 --- a/DayOfDefeatSource/dodsserver +++ b/DayOfDefeatSource/dodsserver @@ -3,7 +3,7 @@ # Server Management Script # Author: Daniel Gibbs # Website: http://gameservermanagers.com -# Version: 030515 +# Version: 090515 #### Variables #### @@ -23,6 +23,7 @@ port="27015" sourcetvport="27020" clientport="27005" ip="0.0.0.0" +updateonstart="no" # https://developer.valvesoftware.com/wiki/Command_Line_Options#Source_Dedicated_Server fn_parms(){ diff --git a/DeathmatchClassic/dmcserver b/DeathmatchClassic/dmcserver index d83287c3c..ebaac87c1 100644 --- a/DeathmatchClassic/dmcserver +++ b/DeathmatchClassic/dmcserver @@ -3,7 +3,7 @@ # Server Management Script # Author: Daniel Gibbs # Website: http://gameservermanagers.com -# Version: 030515 +# Version: 090515 #### Variables #### @@ -22,6 +22,7 @@ maxplayers="16" port="27015" clientport="27005" ip="0.0.0.0" +updateonstart="no" # https://developer.valvesoftware.com/wiki/Command_Line_Options#Command-line_parameters_2 fn_parms(){ diff --git a/DoubleActionBoogaloo/dabserver b/DoubleActionBoogaloo/dabserver index dcdf65ac8..9a84ef2e0 100644 --- a/DoubleActionBoogaloo/dabserver +++ b/DoubleActionBoogaloo/dabserver @@ -3,7 +3,7 @@ # Server Management Script # Author: Daniel Gibbs # Website: http://gameservermanagers.com -# Version: 030515 +# Version: 090515 #### Variables #### @@ -23,6 +23,7 @@ port="27015" sourcetvport="27020" clientport="27005" ip="0.0.0.0" +updateonstart="no" # https://developer.valvesoftware.com/wiki/Command_Line_Options#Source_Dedicated_Server fn_parms(){ diff --git a/FistfulOfFrags/fofserver b/FistfulOfFrags/fofserver index a73136137..c3f8c4f25 100644 --- a/FistfulOfFrags/fofserver +++ b/FistfulOfFrags/fofserver @@ -3,7 +3,7 @@ # Server Management Script # Author: Daniel Gibbs # Website: http://gameservermanagers.com -# Version: 030515 +# Version: 090515 #### Variables #### @@ -23,6 +23,7 @@ port="27015" sourcetvport="27020" clientport="27005" ip="0.0.0.0" +updateonstart="no" # https://developer.valvesoftware.com/wiki/Command_Line_Options#Source_Dedicated_Server fn_parms(){ diff --git a/GarrysMod/gmodserver b/GarrysMod/gmodserver index 52fcc34af..75a97aac3 100644 --- a/GarrysMod/gmodserver +++ b/GarrysMod/gmodserver @@ -3,7 +3,7 @@ # Server Management Script # Author: Daniel Gibbs # Website: http://gameservermanagers.com -# Version: 030515 +# Version: 090515 #### Variables #### @@ -29,6 +29,7 @@ port="27015" sourcetvport="27020" clientport="27005" ip="0.0.0.0" +updateonstart="no" # https://developer.valvesoftware.com/wiki/Command_Line_Options#Source_Dedicated_Server fn_parms(){ diff --git a/HalfLife2Deathmatch/hl2dmserver b/HalfLife2Deathmatch/hl2dmserver index e6355526b..af8e2f301 100644 --- a/HalfLife2Deathmatch/hl2dmserver +++ b/HalfLife2Deathmatch/hl2dmserver @@ -3,7 +3,7 @@ # Server Management Script # Author: Daniel Gibbs # Website: http://gameservermanagers.com -# Version: 030515 +# Version: 090515 #### Variables #### @@ -23,6 +23,7 @@ port="27015" sourcetvport="27020" clientport="27005" ip="0.0.0.0" +updateonstart="no" # https://developer.valvesoftware.com/wiki/Command_Line_Options#Source_Dedicated_Server fn_parms(){ diff --git a/HalfLifeDeathmatch/hldmserver b/HalfLifeDeathmatch/hldmserver index a531413f4..ef651d7da 100644 --- a/HalfLifeDeathmatch/hldmserver +++ b/HalfLifeDeathmatch/hldmserver @@ -3,7 +3,7 @@ # Server Management Script # Author: Daniel Gibbs # Website: http://gameservermanagers.com -# Version: 030515 +# Version: 090515 #### Variables #### @@ -22,6 +22,7 @@ maxplayers="16" port="27015" clientport="27005" ip="0.0.0.0" +updateonstart="no" # https://developer.valvesoftware.com/wiki/Command_Line_Options#Command-line_parameters_2 fn_parms(){ diff --git a/HalfLifeDeathmatchSource/hldmsserver b/HalfLifeDeathmatchSource/hldmsserver index ebf180efa..b8fdb4476 100644 --- a/HalfLifeDeathmatchSource/hldmsserver +++ b/HalfLifeDeathmatchSource/hldmsserver @@ -3,7 +3,7 @@ # Server Management Script # Author: Daniel Gibbs # Website: http://gameservermanagers.com -# Version: 050515 +# Version: 090515 #### Variables #### @@ -23,6 +23,7 @@ port="27015" sourcetvport="27020" clientport="27005" ip="0.0.0.0" +updateonstart="no" # https://developer.valvesoftware.com/wiki/Command_Line_Options#Source_Dedicated_Server fn_parms(){ diff --git a/Insurgency/insserver b/Insurgency/insserver index 2eb1f84ab..f9fe3f0dc 100644 --- a/Insurgency/insserver +++ b/Insurgency/insserver @@ -3,7 +3,7 @@ # Server Management Script # Author: Daniel Gibbs # Website: http://gameservermanagers.com -# Version: 030515 +# Version: 090515 #### Variables #### @@ -23,6 +23,7 @@ port="27015" sourcetvport="27020" clientport="27005" ip="0.0.0.0" +updateonstart="no" # https://developer.valvesoftware.com/wiki/Command_Line_Options#Source_Dedicated_Server fn_parms(){ diff --git a/JustCause2/jc2server b/JustCause2/jc2server index 760865f1e..d17378233 100644 --- a/JustCause2/jc2server +++ b/JustCause2/jc2server @@ -3,7 +3,7 @@ # Server Management Script # Author: Daniel Gibbs # Website: http://gameservermanagers.com -# Version: 030515 +# Version: 090515 #### Variables #### @@ -20,6 +20,7 @@ steampass="" maxplayers="10" port="7777" ip="0.0.0.0" +updateonstart="no" fn_parms(){ parms="--maxplayers ${maxplayers} --bindip ${ip} --bindport ${port}" diff --git a/KillingFloor/kfserver b/KillingFloor/kfserver index f58c20e9a..e5cea676c 100644 --- a/KillingFloor/kfserver +++ b/KillingFloor/kfserver @@ -3,7 +3,7 @@ # Server Management Script # Author: Daniel Gibbs # Website: http://gameservermanagers.com -# Version: 030515 +# Version: 090515 #### Variables #### @@ -19,6 +19,7 @@ steampass="password" # Start Variables defaultmap="KF-BioticsLab.rom" ip="0.0.0.0" +updateonstart="no" fn_parms(){ parms="server ${defaultmap}?game=KFmod.KFGameType?VACSecured=true -nohomedir ini=${servercfg} log=${gamelog}" diff --git a/Left4Dead/l4dserver b/Left4Dead/l4dserver index d31922233..80eec42ab 100644 --- a/Left4Dead/l4dserver +++ b/Left4Dead/l4dserver @@ -4,7 +4,7 @@ # Author: Daniel Gibbs # Contributor: Summit Singh Thakur # Website: http://gameservermanagers.com -# Version: 030515 +# Version: 090515 #### Variables #### @@ -23,6 +23,7 @@ maxplayers="8" port="27015" clientport="27005" ip="0.0.0.0" +updateonstart="no" # https://developer.valvesoftware.com/wiki/Command_Line_Options#Source_Dedicated_Server fn_parms(){ diff --git a/Left4Dead2/l4d2server b/Left4Dead2/l4d2server index 0f8862f9d..89d5e6738 100644 --- a/Left4Dead2/l4d2server +++ b/Left4Dead2/l4d2server @@ -3,7 +3,7 @@ # Server Management Script # Author: Daniel Gibbs # Website: http://gameservermanagers.com -# Version: 030515 +# Version: 090515 #### Variables #### @@ -22,6 +22,7 @@ maxplayers="8" port="27015" clientport="27005" ip="0.0.0.0" +updateonstart="no" # https://developer.valvesoftware.com/wiki/Command_Line_Options#Source_Dedicated_Server fn_parms(){ diff --git a/NS2Combat/ns2cserver b/NS2Combat/ns2cserver index baf1a24aa..55fef25c6 100644 --- a/NS2Combat/ns2cserver +++ b/NS2Combat/ns2cserver @@ -3,7 +3,7 @@ # Server Management Script # Author: Daniel Gibbs # Website: http://gameservermanagers.com -# Version: 030515 +# Version: 090515 #### Variables #### @@ -21,6 +21,7 @@ defaultmap="co_core" port="27015" maxplayers="24" ip="0.0.0.0" +updateonstart="no" servername="NS2C Server" webadminuser="admin" webadminpass="admin" diff --git a/NaturalSelection2/ns2server b/NaturalSelection2/ns2server index b5cd9f8b7..15002709b 100644 --- a/NaturalSelection2/ns2server +++ b/NaturalSelection2/ns2server @@ -3,7 +3,7 @@ # Server Management Script # Author: Daniel Gibbs # Website: http://gameservermanagers.com -# Version: 030515 +# Version: 090515 #### Variables #### @@ -21,6 +21,7 @@ defaultmap="ns2_summit" port="27015" maxplayers="24" ip="0.0.0.0" +updateonstart="no" servername="NS2 Server" webadminuser="admin" webadminpass="admin" diff --git a/NoMoreRoomInHell/nmrihserver b/NoMoreRoomInHell/nmrihserver index a9fe51db0..4a10e416d 100644 --- a/NoMoreRoomInHell/nmrihserver +++ b/NoMoreRoomInHell/nmrihserver @@ -3,7 +3,7 @@ # Server Management Script # Author: Daniel Gibbs # Website: http://gameservermanagers.com -# Version: 030515 +# Version: 090515 #### Variables #### @@ -23,6 +23,7 @@ port="27015" sourcetvport="27020" clientport="27005" ip="0.0.0.0" +updateonstart="no" # https://developer.valvesoftware.com/wiki/Command_Line_Options#Source_Dedicated_Server fn_parms(){ diff --git a/OpposingForce/opforserver b/OpposingForce/opforserver index 076b15820..68fc372fb 100644 --- a/OpposingForce/opforserver +++ b/OpposingForce/opforserver @@ -3,7 +3,7 @@ # Server Management Script # Author: Daniel Gibbs # Website: http://gameservermanagers.com -# Version: 030515 +# Version: 090515 #### Variables #### @@ -22,6 +22,7 @@ maxplayers="16" port="27015" clientport="27005" ip="0.0.0.0" +updateonstart="no" # https://developer.valvesoftware.com/wiki/Command_Line_Options#Command-line_parameters_2 fn_parms(){ diff --git a/ProjectZomboid/pzserver b/ProjectZomboid/pzserver index 8a3448065..d32f05769 100644 --- a/ProjectZomboid/pzserver +++ b/ProjectZomboid/pzserver @@ -3,7 +3,7 @@ # Server Management Script # Author: Daniel Gibbs # Website: http://gameservermanagers.com -# Version: 030515 +# Version: 090515 #### Variables #### @@ -18,6 +18,7 @@ steampass="" # Start Variables ip="0.0.0.0" +updateonstart="no" fn_parms(){ parms="" diff --git a/RedOrchestra/roserver b/RedOrchestra/roserver index 5fea7a39a..823349ba8 100644 --- a/RedOrchestra/roserver +++ b/RedOrchestra/roserver @@ -3,7 +3,7 @@ # Server Management Script # Author: Daniel Gibbs # Website: http://gameservermanagers.com -# Version: 030515 +# Version: 090515 #### Variables #### @@ -19,6 +19,7 @@ steampass="password" # Start Variables defaultmap="RO-Arad.rom" ip="0.0.0.0" +updateonstart="no" fn_parms(){ parms="server ${defaultmap}?game=ROGame.ROTeamGame?VACSecured=true -nohomedir ini=${servercfg} log=${gamelog}" diff --git a/Ricochet/ricochetserver b/Ricochet/ricochetserver index 04951d876..ce9d707db 100644 --- a/Ricochet/ricochetserver +++ b/Ricochet/ricochetserver @@ -3,7 +3,7 @@ # Server Management Script # Author: Daniel Gibbs # Website: http://gameservermanagers.com -# Version: 030515 +# Version: 090515 #### Variables #### @@ -22,6 +22,7 @@ maxplayers="16" port="27015" clientport="27005" ip="0.0.0.0" +updateonstart="no" # https://developer.valvesoftware.com/wiki/Command_Line_Options#Command-line_parameters_2 fn_parms(){ diff --git a/SeriousSam3BFE/ss3sserver b/SeriousSam3BFE/ss3sserver index 3c953b71e..30dfe3c69 100644 --- a/SeriousSam3BFE/ss3sserver +++ b/SeriousSam3BFE/ss3sserver @@ -3,7 +3,7 @@ # Server Management Script # Author: Daniel Gibbs # Website: http://gameservermanagers.com -# Version: 030515 +# Version: 090515 #### Variables #### @@ -18,6 +18,7 @@ steampass="password" # Start Variables ip="0.0.0.0" +updateonstart="no" # https://raw.githubusercontent.com/dgibbs64/linuxgsm/master/SeriousSam3BFE/help/DedicatedServer_Readme.txt fn_parms(){ diff --git a/StarBound/sbserver b/StarBound/sbserver index 1aa505da6..9a9aefae0 100644 --- a/StarBound/sbserver +++ b/StarBound/sbserver @@ -3,7 +3,7 @@ # Server Management Script # Author: Daniel Gibbs # Website: http://gameservermanagers.com -# Version: 030515 +# Version: 090515 #### Variables #### @@ -18,6 +18,7 @@ steampass="password" # Start Variables ip="0.0.0.0" +updateonstart="no" fn_parms(){ parms="" diff --git a/TeamFortress2/tf2server b/TeamFortress2/tf2server index 22d1c372b..9eea49f8f 100644 --- a/TeamFortress2/tf2server +++ b/TeamFortress2/tf2server @@ -3,7 +3,7 @@ # Server Management Script # Author: Daniel Gibbs # Website: http://gameservermanagers.com -# Version: 030515 +# Version: 090515 #### Variables #### @@ -23,6 +23,7 @@ port="27015" sourcetvport="27020" clientport="27005" ip="0.0.0.0" +updateonstart="no" # https://developer.valvesoftware.com/wiki/Command_Line_Options#Source_Dedicated_Server fn_parms(){ diff --git a/TeamFortressClassic/tfcserver b/TeamFortressClassic/tfcserver index 5d4132b15..245d7e606 100644 --- a/TeamFortressClassic/tfcserver +++ b/TeamFortressClassic/tfcserver @@ -3,7 +3,7 @@ # Server Management Script # Author: Daniel Gibbs # Website: http://gameservermanagers.com -# Version: 030515 +# Version: 090515 #### Variables #### @@ -22,6 +22,7 @@ maxplayers="16" port="27015" clientport="27005" ip="0.0.0.0" +updateonstart="no" # https://developer.valvesoftware.com/wiki/Command_Line_Options#Command-line_parameters_2 fn_parms(){ diff --git a/TeamSpeak3/ts3server b/TeamSpeak3/ts3server index 583f99d80..12e64afa0 100644 --- a/TeamSpeak3/ts3server +++ b/TeamSpeak3/ts3server @@ -3,7 +3,7 @@ # Server Management Script # Author: Daniel Gibbs # Website: http://gameservermanagers.com -# Version: 030515 +# Version: 090515 #### Variables #### @@ -12,6 +12,9 @@ emailnotification="off" email="email@example.com" +# Start Variables +updateonstart="no" + # Server Details gamename="Teamspeak 3" servername="Teamspeak 3 Server" diff --git a/functions/fn_start b/functions/fn_start index c7e482711..7bed76b69 100644 --- a/functions/fn_start +++ b/functions/fn_start @@ -43,6 +43,12 @@ if [ ! -e "${servercfgfullpath}" ]; then touch "${servercfgfullpath}" fi fn_logs + +# Will check for updates is updateonstart is yes +if [ "${updateonstart}" == "yes" ]||[ "${updateonstart}" == "1" ]; then + fn_update_check +fi + fn_printdots "${servername}" fn_scriptlog "${servername}" sleep 1 @@ -102,6 +108,12 @@ if [ "${tmuxwc}" -eq 1 ]; then echo -en "\n" exit fi + +# Will check for updates is updateonstart is yes +if [ "${updateonstart}" == "yes" ]||[ "${updateonstart}" == "1" ]; then + fn_update_check +fi + # Create lock file date > "${rootdir}/${lockselfname}" cd "${executabledir}" @@ -175,11 +187,6 @@ rm "${scriptlogdir}/.${servicename}-tmux-error.tmp" echo -en "\n" } -# Will check for updates is updateonstart is yes -if [ "${updateonstart}" == "yes" ]||[ "${updateonstart}" == "1" ]; then - fn_update_check -fi - if [ "${gamename}" == "Teamspeak 3" ]; then fn_start_teamspeak3 else