diff --git a/7DaysToDie/sdtdserver b/7DaysToDie/sdtdserver index 3f3ca3968..5016adfc8 100644 --- a/7DaysToDie/sdtdserver +++ b/7DaysToDie/sdtdserver @@ -3,7 +3,7 @@ # Server Management Script # Author: Daniel Gibbs # Website: http://gameservermanagers.com -# Version: 090515 +version="010715" #### Variables #### @@ -43,10 +43,10 @@ filesdir="${rootdir}/serverfiles" systemdir="${filesdir}" executabledir="${filesdir}" executable="./7DaysToDie.sh" -servercfgdir="${filesdir}" servercfg="${servicename}.xml" +servercfgdir="${filesdir}" servercfgfullpath="${servercfgdir}/${servercfg}" -defaultcfg="${filesdir}/serverconfig.xml" +servercfgdefault="${servercfgdir}/serverconfig.xml" backupdir="${rootdir}/backups" # Logging diff --git a/ARKSurvivalEvolved/arkserver b/ARKSurvivalEvolved/arkserver index e80d5d239..81981ddd0 100644 --- a/ARKSurvivalEvolved/arkserver +++ b/ARKSurvivalEvolved/arkserver @@ -3,7 +3,7 @@ # Server Management Script # Author: Daniel Gibbs # Website: http://gameservermanagers.com -# Version: 210615 +version="010715" #### Variables #### @@ -98,4 +98,3 @@ fn_functions getopt=$1 fn_getopt - diff --git a/Arma3/arma3server b/Arma3/arma3server index feab9e5d1..896a4b87f 100644 --- a/Arma3/arma3server +++ b/Arma3/arma3server @@ -4,7 +4,7 @@ # Author: Daniel Gibbs # Contributor: Scarsz # Website: http://gameservermanagers.com -# Version: 090515 +version="010715" #### Variables #### @@ -25,8 +25,6 @@ fn_parms(){ parms="-netlog -ip=${ip} -cfg=${networkcfgfullpath} -config=${servercfgfullpath} -mod=${mods}" } -#### Advanced Variables #### - # ARMA 3 Modules # add mods with relative paths: # mods/\@CBA_A3\; @@ -35,6 +33,8 @@ parms="-netlog -ip=${ip} -cfg=${networkcfgfullpath} -config=${servercfgfullpath} # and chmod modules directories to 775 mods="" +#### Advanced Variables #### + # Steam # Stable appid="233780" @@ -47,18 +47,20 @@ gamename="ARMA 3" engine="realvirtuality" # Directories -rootdir="$(cd "$(dirname "${BASH_SOURCE[0]}" )" && pwd )" +rootdir="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)" selfname="$(basename $0)" lockselfname=".${servicename}.lock" filesdir="${rootdir}/serverfiles" systemdir="${filesdir}" executabledir="${filesdir}" executable="./arma3server" -servercfgdir="${systemdir}/cfg" servercfg="${servicename}.server.cfg" networkcfg="${servicename}.network.cfg" +servercfgdir="${systemdir}/cfg" servercfgfullpath="${servercfgdir}/${servercfg}" networkcfgfullpath="${servercfgdir}/${networkcfg}" +servercfgdefault="${servercfgdir}/lgsm-default.server.cfg" +networkcfgdefault="${servercfgdir}/lgsm-default.network.cfg" backupdir="${rootdir}/backups" # Logging diff --git a/BlackMesa/bmdmserver b/BlackMesa/bmdmserver index fde45530d..5f59278ef 100644 --- a/BlackMesa/bmdmserver +++ b/BlackMesa/bmdmserver @@ -3,7 +3,7 @@ # Server Management Script # Author: Daniel Gibbs # Website: http://gameservermanagers.com -# Version: 120615 +version="010715" #### Variables #### @@ -48,10 +48,10 @@ filesdir="${rootdir}/serverfiles" systemdir="${filesdir}/bms" executabledir="${filesdir}" executable="./srcds_run" -servercfgdir="${systemdir}/cfg" servercfg="${servicename}.cfg" +servercfgdir="${systemdir}/cfg" servercfgfullpath="${servercfgdir}/${servercfg}" -defaultcfg="${servercfgdir}/server.cfg" +servercfgdefault="${servercfgdir}/server.cfg" backupdir="${rootdir}/backups" # Logging diff --git a/BladeSymphony/bsserver b/BladeSymphony/bsserver index 5a7940c97..fc74f0cc6 100644 --- a/BladeSymphony/bsserver +++ b/BladeSymphony/bsserver @@ -3,7 +3,7 @@ # Server Management Script # Author: Daniel Gibbs # Website: http://gameservermanagers.com -# Version: 090515 +version="010715" #### Variables #### @@ -41,17 +41,17 @@ gamename="Blade Symphony" engine="source" # Directories -rootdir="$(cd "$(dirname "${BASH_SOURCE[0]}" )" && pwd )" +rootdir="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)" selfname="$(basename $0)" lockselfname=".${servicename}.lock" filesdir="${rootdir}/serverfiles" systemdir="${filesdir}/berimbau" executabledir="${filesdir}" executable="./srcds_run.sh" -servercfgdir="${systemdir}/cfg" servercfg="${servicename}.cfg" +servercfgdir="${systemdir}/cfg" servercfgfullpath="${servercfgdir}/${servercfg}" -defaultcfg="${servercfgdir}/server.cfg" +servercfgdefault="${servercfgdir}/server.cfg" backupdir="${rootdir}/backups" # Logging diff --git a/CounterStrike/csserver b/CounterStrike/csserver index 7664e1c85..16974c66d 100644 --- a/CounterStrike/csserver +++ b/CounterStrike/csserver @@ -3,7 +3,7 @@ # Server Management Script # Author: Daniel Gibbs # Website: http://gameservermanagers.com -# Version: 090515 +version="010715" #### Variables #### @@ -40,17 +40,17 @@ gamename="Counter Strike 1.6" engine="goldsource" # Directories -rootdir="$(cd "$(dirname "${BASH_SOURCE[0]}" )" && pwd )" +rootdir="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)" selfname="$(basename $0)" lockselfname=".${servicename}.lock" filesdir="${rootdir}/serverfiles" systemdir="${filesdir}/cstrike" executabledir="${filesdir}" executable="./hlds_run" -servercfgdir="${systemdir}" servercfg="${servicename}.cfg" +servercfgdir="${systemdir}/cfg" servercfgfullpath="${servercfgdir}/${servercfg}" -defaultcfg="${servercfgdir}/server.cfg" +servercfgdefault="${servercfgdir}/server.cfg" backupdir="${rootdir}/backups" # Logging diff --git a/CounterStrikeConditionZero/csczserver b/CounterStrikeConditionZero/csczserver index a78fc5fa9..e6b4927be 100644 --- a/CounterStrikeConditionZero/csczserver +++ b/CounterStrikeConditionZero/csczserver @@ -3,7 +3,7 @@ # Server Management Script # Author: Daniel Gibbs # Website: http://gameservermanagers.com -# Version: 090515 +version="010715" #### Variables #### @@ -40,17 +40,17 @@ gamename="Counter Strike: Condition Zero" engine="goldsource" # Directories -rootdir="$(cd "$(dirname "${BASH_SOURCE[0]}" )" && pwd )" -selfname="$0" -lockselfname=$(echo ".${servicename}.lock") +rootdir="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)" +selfname="$(basename $0)" +lockselfname=".${servicename}.lock" filesdir="${rootdir}/serverfiles" systemdir="${filesdir}/czero" executabledir="${filesdir}" executable="./hlds_run" -servercfgdir="${systemdir}" servercfg="${servicename}.cfg" +servercfgdir="${systemdir}" servercfgfullpath="${servercfgdir}/${servercfg}" -defaultcfg="${servercfgdir}/server.cfg" +servercfgdefault="${servercfgdir}/server.cfg" backupdir="${rootdir}/backups" # Logging @@ -95,4 +95,4 @@ fn_runfunction fn_functions getopt=$1 -fn_getopt \ No newline at end of file +fn_getopt diff --git a/CounterStrikeGlobalOffensive/csgoserver b/CounterStrikeGlobalOffensive/csgoserver index 492e6f912..a08731a2c 100755 --- a/CounterStrikeGlobalOffensive/csgoserver +++ b/CounterStrikeGlobalOffensive/csgoserver @@ -3,7 +3,7 @@ # Server Management Script # Author: Daniel Gibbs # Website: http://gameservermanagers.com -# Version: 090515 +version="010715" #### Variables #### @@ -58,17 +58,17 @@ gamename="Counter Strike: Global Offensive" engine="source" # Directories -rootdir="$(cd "$(dirname "${BASH_SOURCE[0]}" )" && pwd )" +rootdir="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)" selfname="$(basename $0)" lockselfname=".${servicename}.lock" filesdir="${rootdir}/serverfiles" systemdir="${filesdir}/csgo" executabledir="${filesdir}" executable="./srcds_run" -servercfgdir="${systemdir}/cfg" servercfg="${servicename}.cfg" +servercfgdir="${systemdir}/cfg" servercfgfullpath="${servercfgdir}/${servercfg}" -defaultcfg="${servercfgdir}/server.cfg" +servercfgdefault="${servercfgdir}/server.cfg" backupdir="${rootdir}/backups" # Logging @@ -113,4 +113,4 @@ fn_runfunction fn_functions getopt=$1 -fn_getopt \ No newline at end of file +fn_getopt diff --git a/CounterStrikeSource/cssserver b/CounterStrikeSource/cssserver index 30a359787..86d5591ac 100644 --- a/CounterStrikeSource/cssserver +++ b/CounterStrikeSource/cssserver @@ -3,7 +3,7 @@ # Server Management Script # Author: Daniel Gibbs # Website: http://gameservermanagers.com -# Version: 090515 +version="010715" #### Variables #### @@ -48,10 +48,10 @@ filesdir="${rootdir}/serverfiles" systemdir="${filesdir}/cstrike" executabledir="${filesdir}" executable="./srcds_run" -servercfgdir="${systemdir}/cfg" servercfg="${servicename}.cfg" +servercfgdir="${systemdir}/cfg" servercfgfullpath="${servercfgdir}/${servercfg}" -defaultcfg="${servercfgdir}/server.cfg" +servercfgdefault="${servercfgdir}/server.cfg" backupdir="${rootdir}/backups" # Logging diff --git a/DayOfDefeat/dodserver b/DayOfDefeat/dodserver index a360939a4..a3e3e8551 100644 --- a/DayOfDefeat/dodserver +++ b/DayOfDefeat/dodserver @@ -3,7 +3,7 @@ # Server Management Script # Author: Daniel Gibbs # Website: http://gameservermanagers.com -# Version: 090515 +version="010715" #### Variables #### @@ -47,10 +47,10 @@ filesdir="${rootdir}/serverfiles" systemdir="${filesdir}/dod" executabledir="${filesdir}" executable="./hlds_run" -servercfgdir="${systemdir}" servercfg="${servicename}.cfg" +servercfgdir="${systemdir}" servercfgfullpath="${servercfgdir}/${servercfg}" -defaultcfg="${servercfgdir}/server.cfg" +servercfgdefault="${servercfgdir}/server.cfg" backupdir="${rootdir}/backups" # Logging diff --git a/DayOfDefeatSource/dodsserver b/DayOfDefeatSource/dodsserver index 10624293a..e90ad283e 100644 --- a/DayOfDefeatSource/dodsserver +++ b/DayOfDefeatSource/dodsserver @@ -3,7 +3,7 @@ # Server Management Script # Author: Daniel Gibbs # Website: http://gameservermanagers.com -# Version: 090515 +version="010715" #### Variables #### @@ -48,10 +48,10 @@ filesdir="${rootdir}/serverfiles" systemdir="${filesdir}/dod" executabledir="${filesdir}" executable="./srcds_run" -servercfgdir="${systemdir}/cfg" servercfg="${servicename}.cfg" +servercfgdir="${systemdir}/cfg" servercfgfullpath="${servercfgdir}/${servercfg}" -defaultcfg="${servercfgdir}/server.cfg" +servercfgdefault="${servercfgdir}/server.cfg" backupdir="${rootdir}/backups" # Logging diff --git a/DeathmatchClassic/dmcserver b/DeathmatchClassic/dmcserver index ebaac87c1..b38b84d65 100644 --- a/DeathmatchClassic/dmcserver +++ b/DeathmatchClassic/dmcserver @@ -3,7 +3,7 @@ # Server Management Script # Author: Daniel Gibbs # Website: http://gameservermanagers.com -# Version: 090515 +version="010715" #### Variables #### @@ -47,10 +47,10 @@ filesdir="${rootdir}/serverfiles" systemdir="${filesdir}/dmc" executabledir="${filesdir}" executable="./hlds_run" -servercfgdir="${systemdir}" servercfg="${servicename}.cfg" +servercfgdir="${systemdir}" servercfgfullpath="${servercfgdir}/${servercfg}" -defaultcfg="${servercfgdir}/server.cfg" +servercfgdefault="${servercfgdir}/server.cfg" backupdir="${rootdir}/backups" # Logging diff --git a/DoubleActionBoogaloo/dabserver b/DoubleActionBoogaloo/dabserver index 9a84ef2e0..780f986c1 100644 --- a/DoubleActionBoogaloo/dabserver +++ b/DoubleActionBoogaloo/dabserver @@ -3,7 +3,7 @@ # Server Management Script # Author: Daniel Gibbs # Website: http://gameservermanagers.com -# Version: 090515 +version="010715" #### Variables #### @@ -48,10 +48,10 @@ filesdir="${rootdir}/serverfiles" systemdir="${filesdir}/dab" executabledir="${filesdir}" executable="./dabds.sh" -servercfgdir="${systemdir}/cfg" servercfg="${servicename}.cfg" +servercfgdir="${systemdir}/cfg" servercfgfullpath="${servercfgdir}/${servercfg}" -defaultcfg="${servercfgdir}/server.cfg" +servercfgdefault="${servercfgdir}/server.cfg" backupdir="${rootdir}/backups" # Logging @@ -79,7 +79,7 @@ if [ ! -f "${rootdir}/functions/${functionfile}" ]; then fi cd functions echo -e "loading ${functionfile}...\c" - wget -N /dev/null https://raw.githubusercontent.com/dgibbs64/linuxgameservers/master/functions/${functionfile} 2>&1 | grep -F HTTP | cut -c45- + wget -N /dev/null https://raw.githubusercontent.com/dgibbs64/linuxgsm/master/functions/${functionfile} 2>&1 | grep -F HTTP | cut -c45- chmod +x "${functionfile}" cd "${rootdir}" sleep 1 diff --git a/FistfulOfFrags/fofserver b/FistfulOfFrags/fofserver index c3f8c4f25..4c4cf0785 100644 --- a/FistfulOfFrags/fofserver +++ b/FistfulOfFrags/fofserver @@ -3,7 +3,7 @@ # Server Management Script # Author: Daniel Gibbs # Website: http://gameservermanagers.com -# Version: 090515 +version="010715" #### Variables #### @@ -48,10 +48,10 @@ filesdir="${rootdir}/serverfiles" systemdir="${filesdir}/fof" executabledir="${filesdir}" executable="./srcds_run" -servercfgdir="${systemdir}/cfg" servercfg="${servicename}.cfg" +servercfgdir="${systemdir}/cfg" servercfgfullpath="${servercfgdir}/${servercfg}" -defaultcfg="${servercfgdir}/server.cfg" +servercfgdefault="${servercfgdir}/server.cfg" backupdir="${rootdir}/backups" # Logging diff --git a/GarrysMod/gmodserver b/GarrysMod/gmodserver index 75a97aac3..ea327c966 100644 --- a/GarrysMod/gmodserver +++ b/GarrysMod/gmodserver @@ -3,7 +3,7 @@ # Server Management Script # Author: Daniel Gibbs # Website: http://gameservermanagers.com -# Version: 090515 +version="010715" #### Variables #### @@ -54,10 +54,10 @@ filesdir="${rootdir}/serverfiles" systemdir="${filesdir}/garrysmod" executabledir="${filesdir}" executable="./srcds_run" -servercfgdir="${systemdir}/cfg" servercfg="${servicename}.cfg" +servercfgdir="${systemdir}/cfg" servercfgfullpath="${servercfgdir}/${servercfg}" -defaultcfg="${servercfgdir}/server.cfg" +servercfgdefault="${servercfgdir}/server.cfg" backupdir="${rootdir}/backups" # Logging diff --git a/HalfLife2Deathmatch/hl2dmserver b/HalfLife2Deathmatch/hl2dmserver index af8e2f301..3e7ad4654 100644 --- a/HalfLife2Deathmatch/hl2dmserver +++ b/HalfLife2Deathmatch/hl2dmserver @@ -3,7 +3,7 @@ # Server Management Script # Author: Daniel Gibbs # Website: http://gameservermanagers.com -# Version: 090515 +version="010715" #### Variables #### @@ -48,10 +48,10 @@ filesdir="${rootdir}/serverfiles" systemdir="${filesdir}/hl2mp" executabledir="${filesdir}" executable="./srcds_run" -servercfgdir="${systemdir}/cfg" servercfg="${servicename}.cfg" +servercfgdir="${systemdir}/cfg" servercfgfullpath="${servercfgdir}/${servercfg}" -defaultcfg="${servercfgdir}/server.cfg" +servercfgdefault="${servercfgdir}/server.cfg" backupdir="${rootdir}/backups" # Logging diff --git a/HalfLifeDeathmatch/hldmserver b/HalfLifeDeathmatch/hldmserver index ef651d7da..318d1300b 100644 --- a/HalfLifeDeathmatch/hldmserver +++ b/HalfLifeDeathmatch/hldmserver @@ -3,7 +3,7 @@ # Server Management Script # Author: Daniel Gibbs # Website: http://gameservermanagers.com -# Version: 090515 +version="010715" #### Variables #### @@ -47,10 +47,10 @@ filesdir="${rootdir}/serverfiles" systemdir="${filesdir}/valve" executabledir="${filesdir}" executable="./hlds_run" -servercfgdir="${systemdir}" servercfg="${servicename}.cfg" +servercfgdir="${systemdir}" servercfgfullpath="${servercfgdir}/${servercfg}" -defaultcfg="${servercfgdir}/server.cfg" +servercfgdefault="${servercfgdir}/server.cfg" backupdir="${rootdir}/backups" # Logging @@ -95,4 +95,4 @@ fn_runfunction fn_functions getopt=$1 -fn_getopt \ No newline at end of file +fn_getopt diff --git a/HalfLifeDeathmatchSource/hldmsserver b/HalfLifeDeathmatchSource/hldmsserver index b8fdb4476..394a125b2 100644 --- a/HalfLifeDeathmatchSource/hldmsserver +++ b/HalfLifeDeathmatchSource/hldmsserver @@ -3,7 +3,7 @@ # Server Management Script # Author: Daniel Gibbs # Website: http://gameservermanagers.com -# Version: 090515 +version="010715" #### Variables #### @@ -48,10 +48,10 @@ filesdir="${rootdir}/serverfiles" systemdir="${filesdir}/hl1mp" executabledir="${filesdir}" executable="./srcds_run" -servercfgdir="${systemdir}/cfg" servercfg="${servicename}.cfg" +servercfgdir="${systemdir}/cfg" servercfgfullpath="${servercfgdir}/${servercfg}" -defaultcfg="${servercfgdir}/server.cfg" +servercfgdefault="${servercfgdir}/server.cfg" backupdir="${rootdir}/backups" # Logging diff --git a/Insurgency/insserver b/Insurgency/insserver index f9fe3f0dc..0f96ca216 100644 --- a/Insurgency/insserver +++ b/Insurgency/insserver @@ -3,7 +3,7 @@ # Server Management Script # Author: Daniel Gibbs # Website: http://gameservermanagers.com -# Version: 090515 +version="010715" #### Variables #### @@ -48,10 +48,10 @@ filesdir="${rootdir}/serverfiles" systemdir="${filesdir}/insurgency" executabledir="${filesdir}" executable="./srcds_linux" -servercfgdir="${systemdir}/cfg" servercfg="${servicename}.cfg" +servercfgdir="${systemdir}/cfg" servercfgfullpath="${servercfgdir}/${servercfg}" -defaultcfg="${servercfgdir}/server.cfg" +servercfgdefault="${servercfgdir}/server.cfg" backupdir="${rootdir}/backups" # Logging diff --git a/JustCause2/jc2server b/JustCause2/jc2server index d17378233..e07c88f27 100644 --- a/JustCause2/jc2server +++ b/JustCause2/jc2server @@ -3,7 +3,7 @@ # Server Management Script # Author: Daniel Gibbs # Website: http://gameservermanagers.com -# Version: 090515 +version="010715" #### Variables #### @@ -44,9 +44,10 @@ filesdir="${rootdir}/serverfiles" systemdir="${filesdir}" executabledir="${filesdir}" executable="./Jcmp-Server" -servercfgdir="${filesdir}" servercfg="config.lua" +servercfgdir="${filesdir}" servercfgfullpath="${servercfgdir}/${servercfg}" +servercfgdefault="${servercfgdir}/default_config.lua" backupdir="${rootdir}/backups" # Logging diff --git a/KillingFloor/kfserver b/KillingFloor/kfserver index e5cea676c..94c69246f 100644 --- a/KillingFloor/kfserver +++ b/KillingFloor/kfserver @@ -3,7 +3,7 @@ # Server Management Script # Author: Daniel Gibbs # Website: http://gameservermanagers.com -# Version: 090515 +version="010715" #### Variables #### @@ -31,14 +31,14 @@ parms="server ${defaultmap}?game=KFmod.KFGameType?VACSecured=true -nohomedir ini #### Advanced Variables #### +# Steam +appid="215360" + # Server Details servicename="kf-server" gamename="Killing Floor" engine="unreal2" -# Steam -appid="215360" - # Directories rootdir="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)" selfname="$(basename $0)" @@ -47,11 +47,11 @@ filesdir="${rootdir}/serverfiles" systemdir="${filesdir}/System" executabledir="${systemdir}" executable="./ucc-bin" -servercfgdir="${systemdir}" servercfg="${servicename}.ini" +servercfgdir="${systemdir}" servercfgfullpath="${servercfgdir}/${servercfg}" +servercfgdefault="${servercfgdir}/Default.ini" compressedmapsdir="${rootdir}/Maps-Compressed" -defaultcfg="${systemdir}/Default.ini" backupdir="${rootdir}/backups" # Logging diff --git a/Left4Dead/l4dserver b/Left4Dead/l4dserver index df71a4692..0ce2d5b9c 100644 --- a/Left4Dead/l4dserver +++ b/Left4Dead/l4dserver @@ -4,7 +4,7 @@ # Author: Daniel Gibbs # Contributor: Summit Singh Thakur # Website: http://gameservermanagers.com -# Version: 260515 +version="010715" #### Variables #### @@ -48,10 +48,10 @@ filesdir="${rootdir}/serverfiles" systemdir="${filesdir}/left4dead" executabledir="${filesdir}" executable="./srcds_run" -servercfgdir="${systemdir}/cfg" servercfg="${servicename}.cfg" +servercfgdir="${systemdir}/cfg" servercfgfullpath="${servercfgdir}/${servercfg}" -defaultcfg="${servercfgdir}/server.cfg" +servercfgdefault="${servercfgdir}/server.cfg" backupdir="${rootdir}/backups" # Logging diff --git a/Left4Dead2/l4d2server b/Left4Dead2/l4d2server index 89d5e6738..75a1ae25e 100644 --- a/Left4Dead2/l4d2server +++ b/Left4Dead2/l4d2server @@ -3,7 +3,7 @@ # Server Management Script # Author: Daniel Gibbs # Website: http://gameservermanagers.com -# Version: 090515 +version="010715" #### Variables #### @@ -47,10 +47,10 @@ filesdir="${rootdir}/serverfiles" systemdir="${filesdir}/left4dead2" executabledir="${filesdir}" executable="./srcds_run" -servercfgdir="${systemdir}/cfg" servercfg="${servicename}.cfg" +servercfgdir="${systemdir}/cfg" servercfgfullpath="${servercfgdir}/${servercfg}" -defaultcfg="${servercfgdir}/server.cfg" +servercfgdefault="${servercfgdir}/server.cfg" backupdir="${rootdir}/backups" # Logging diff --git a/Mumble/mumbleserver b/Mumble/mumbleserver index d06543348..4f584e779 100644 --- a/Mumble/mumbleserver +++ b/Mumble/mumbleserver @@ -2,10 +2,10 @@ # Mumble # Server Management Script # Author: Daniel Gibbs -# Website: http://danielgibbs.co.uk -# Version: 310515 +# Website: http://gameservermanagers.com +version="010715" -### Variables #### +#### Variables #### # Notification Email # (on|off) @@ -16,7 +16,7 @@ email="email@example.com" gamename="Mumble" servicename="mumble-server" -# Directorys +# Directories rootdir="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)" selfname="$(basename $0)" lockselfname=".${servicename}.lock" @@ -24,8 +24,8 @@ filesdir="${rootdir}/serverfiles" systemdir="${filesdir}" executabledir="${filesdir}" executable="./murmur.x86" -servercfgdir="${filesdir}" servercfg="murmur.ini" +servercfgdir="${filesdir}" servercfgfullpath="${servercfgdir}/${servercfg}" backupdir="${rootdir}/backups" @@ -75,4 +75,4 @@ fn_runfunction fn_functions getopt=$1 -fn_getopt \ No newline at end of file +fn_getopt diff --git a/NS2Combat/ns2cserver b/NS2Combat/ns2cserver index 55fef25c6..ba9ba9271 100644 --- a/NS2Combat/ns2cserver +++ b/NS2Combat/ns2cserver @@ -3,7 +3,7 @@ # Server Management Script # Author: Daniel Gibbs # Website: http://gameservermanagers.com -# Version: 090515 +version="010715" #### Variables #### diff --git a/NaturalSelection2/ns2server b/NaturalSelection2/ns2server index 15002709b..1557065c2 100644 --- a/NaturalSelection2/ns2server +++ b/NaturalSelection2/ns2server @@ -3,7 +3,7 @@ # Server Management Script # Author: Daniel Gibbs # Website: http://gameservermanagers.com -# Version: 090515 +version="010715" #### Variables #### diff --git a/NoMoreRoomInHell/nmrihserver b/NoMoreRoomInHell/nmrihserver index 4a10e416d..194bbe914 100644 --- a/NoMoreRoomInHell/nmrihserver +++ b/NoMoreRoomInHell/nmrihserver @@ -3,7 +3,7 @@ # Server Management Script # Author: Daniel Gibbs # Website: http://gameservermanagers.com -# Version: 090515 +version="010715" #### Variables #### @@ -48,10 +48,10 @@ filesdir="${rootdir}/serverfiles" systemdir="${filesdir}/nmrih" executabledir="${filesdir}" executable="./srcds_run" -servercfgdir="${systemdir}/cfg" servercfg="${servicename}.cfg" +servercfgdir="${systemdir}/cfg" servercfgfullpath="${servercfgdir}/${servercfg}" -defaultcfg="${servercfgdir}/server.cfg" +servercfgdefault="${servercfgdir}/server.cfg" backupdir="${rootdir}/backups" # Logging diff --git a/OpposingForce/opforserver b/OpposingForce/opforserver index 68fc372fb..2145a1e08 100644 --- a/OpposingForce/opforserver +++ b/OpposingForce/opforserver @@ -3,7 +3,7 @@ # Server Management Script # Author: Daniel Gibbs # Website: http://gameservermanagers.com -# Version: 090515 +version="010715" #### Variables #### @@ -47,8 +47,8 @@ filesdir="${rootdir}/serverfiles" systemdir="${filesdir}/gearbox" executabledir="${filesdir}" executable="./hlds_run" -servercfgdir="${systemdir}" servercfg="${servicename}.cfg" +servercfgdir="${systemdir}" servercfgfullpath="${servercfgdir}/${servercfg}" defaultcfg="${servercfgdir}/server.cfg" backupdir="${rootdir}/backups" diff --git a/ProjectZomboid/pzserver b/ProjectZomboid/pzserver index 3b479024a..90e7c3cb7 100644 --- a/ProjectZomboid/pzserver +++ b/ProjectZomboid/pzserver @@ -3,7 +3,7 @@ # Server Management Script # Author: Daniel Gibbs # Website: http://gameservermanagers.com -# Version: 180615 +version="010715" #### Variables #### @@ -42,10 +42,9 @@ filesdir="${rootdir}/serverfiles" systemdir="${filesdir}/projectzomboid" executabledir="${filesdir}" executable="./projectzomboid-dedi-server.sh" -servercfgdir="${rootdir}/Zomboid/Server" servercfg="servertest.ini" +servercfgdir="${rootdir}/Zomboid/Server" servercfgfullpath="${servercfgdir}/${servercfg}" -defaultcfg="${servercfgdir}/servertest.ini" backupdir="${rootdir}/backups" # Logging diff --git a/RedOrchestra/roserver b/RedOrchestra/roserver index 823349ba8..e8031b3eb 100644 --- a/RedOrchestra/roserver +++ b/RedOrchestra/roserver @@ -3,7 +3,7 @@ # Server Management Script # Author: Daniel Gibbs # Website: http://gameservermanagers.com -# Version: 090515 +version="010715" #### Variables #### @@ -43,11 +43,11 @@ filesdir="${rootdir}/serverfiles" systemdir="${filesdir}/system" executabledir="${systemdir}" executable="./ucc-bin" -servercfgdir="${systemdir}" servercfg="${servicename}.ini" +servercfgdir="${systemdir}" servercfgfullpath="${servercfgdir}/${servercfg}" +servercfgdefault="${servercfgdir}/default.ini" compressedmapsdir="${rootdir}/Maps-Compressed" -defaultcfg="${systemdir}/default.ini" backupdir="${rootdir}/backups" # Logging diff --git a/Ricochet/ricochetserver b/Ricochet/ricochetserver index ce9d707db..664f4f7f5 100644 --- a/Ricochet/ricochetserver +++ b/Ricochet/ricochetserver @@ -3,7 +3,7 @@ # Server Management Script # Author: Daniel Gibbs # Website: http://gameservermanagers.com -# Version: 090515 +version="010715" #### Variables #### @@ -47,10 +47,10 @@ filesdir="${rootdir}/serverfiles" systemdir="${filesdir}/ricochet" executabledir="${filesdir}" executable="./hlds_run" -servercfgdir="${systemdir}" servercfg="${servicename}.cfg" +servercfgdir="${systemdir}" servercfgfullpath="${servercfgdir}/${servercfg}" -defaultcfg="${servercfgdir}/server.cfg" +servercfgdefault="${servercfgdir}/server.cfg" backupdir="${rootdir}/backups" # Logging diff --git a/SeriousSam3BFE/ss3sserver b/SeriousSam3BFE/ss3sserver index 3b9d70a08..397ef2f0f 100644 --- a/SeriousSam3BFE/ss3sserver +++ b/SeriousSam3BFE/ss3sserver @@ -3,7 +3,7 @@ # Server Management Script # Author: Daniel Gibbs # Website: http://gameservermanagers.com -# Version: 220615 +version="010715" #### Variables #### @@ -41,11 +41,12 @@ selfname="$(basename $0)" lockselfname=".${servicename}.lock" filesdir="${rootdir}/serverfiles" systemdir="${filesdir}/Bin" -executabledir="${systemdir}" executable="./runSam3_DedicatedServer.sh" -servercfgdir="${filesdir}/Content/SeriousSam3/Config" +executabledir="${systemdir}" servercfg="${servicename}.ini" +servercfgdir="${filesdir}/Content/SeriousSam3/Config" servercfgfullpath="${servercfgdir}/${servercfg}" +servercfgdefault="${servercfgdir}/lgsm-default.ini" backupdir="${rootdir}/backups" # Logging diff --git a/StarBound/sbserver b/StarBound/sbserver index 9a9aefae0..39f47b1b3 100644 --- a/StarBound/sbserver +++ b/StarBound/sbserver @@ -3,7 +3,7 @@ # Server Management Script # Author: Daniel Gibbs # Website: http://gameservermanagers.com -# Version: 090515 +version="010715" #### Variables #### @@ -42,11 +42,9 @@ filesdir="${rootdir}/serverfiles" systemdir="${filesdir}" executabledir="${filesdir}/linux64" executable="./starbound_server" -servercfgdir="${executabledir}" servercfg="sbboot.config" -servercfgfullpath="${executabledir}" +servercfgdir="${executabledir}" servercfgfullpath="${servercfgdir}/${servercfg}" -defaultcfg="sbboot.config" backupdir="${rootdir}/backups" # Logging @@ -91,4 +89,4 @@ fn_runfunction fn_functions getopt=$1 -fn_getopt \ No newline at end of file +fn_getopt diff --git a/TeamFortress2/tf2server b/TeamFortress2/tf2server index 9eea49f8f..53a2e5a1d 100644 --- a/TeamFortress2/tf2server +++ b/TeamFortress2/tf2server @@ -3,7 +3,7 @@ # Server Management Script # Author: Daniel Gibbs # Website: http://gameservermanagers.com -# Version: 090515 +version="010715" #### Variables #### @@ -48,10 +48,10 @@ filesdir="${rootdir}/serverfiles" systemdir="${filesdir}/tf" executabledir="${filesdir}" executable="./srcds_run" -servercfgdir="${systemdir}/cfg" servercfg="${servicename}.cfg" +servercfgdir="${systemdir}/cfg" servercfgfullpath="${servercfgdir}/${servercfg}" -defaultcfg="${servercfgdir}/server.cfg" +servercfgdefault="${servercfgdir}/server.cfg" backupdir="${rootdir}/backups" # Logging diff --git a/TeamFortressClassic/tfcserver b/TeamFortressClassic/tfcserver index 245d7e606..b5290c46a 100644 --- a/TeamFortressClassic/tfcserver +++ b/TeamFortressClassic/tfcserver @@ -3,7 +3,7 @@ # Server Management Script # Author: Daniel Gibbs # Website: http://gameservermanagers.com -# Version: 090515 +version="010715" #### Variables #### @@ -47,10 +47,10 @@ filesdir="${rootdir}/serverfiles" systemdir="${filesdir}/tfc" executabledir="${filesdir}" executable="./hlds_run" -servercfgdir="${systemdir}" servercfg="${servicename}.cfg" +servercfgdir="${systemdir}" servercfgfullpath="${servercfgdir}/${servercfg}" -defaultcfg="${servercfgdir}/server.cfg" +servercfgdefault="${servercfgdir}/server.cfg" backupdir="${rootdir}/backups" # Logging diff --git a/TeamSpeak3/ts3server b/TeamSpeak3/ts3server index 7a1274284..c78686dd2 100644 --- a/TeamSpeak3/ts3server +++ b/TeamSpeak3/ts3server @@ -3,7 +3,7 @@ # Server Management Script # Author: Daniel Gibbs # Website: http://gameservermanagers.com -# Version: 090515 +version="010715" #### Variables #### @@ -28,10 +28,9 @@ filesdir="${rootdir}/serverfiles" systemdir="${filesdir}" executabledir="${filesdir}" executable="./ts3server_startscript.sh" -servercfgdir="${filesdir}" servercfg="${servicename}.ini" +servercfgdir="${filesdir}" servercfgfullpath="${servercfgdir}/${servercfg}" -defaultcfg="${servercfgfullpath}" backupdir="${rootdir}/backups" # Logging diff --git a/UnrealTournament2004/ut2k4server b/UnrealTournament2004/ut2k4server index 32ec198a9..bb2686c10 100644 --- a/UnrealTournament2004/ut2k4server +++ b/UnrealTournament2004/ut2k4server @@ -3,7 +3,7 @@ # Server Management Script # Author: Daniel Gibbs # Website: http://gameservermanagers.com -# Version: 030515 +version="010715" #### Variables #### @@ -33,11 +33,11 @@ filesdir="${rootdir}/serverfiles" systemdir="${filesdir}/System" executabledir="${systemdir}" executable="./ucc-bin" -servercfgdir="${systemdir}" servercfg="${servicename}.ini" +servercfgdir="${systemdir}" servercfgfullpath="${servercfgdir}/${servercfg}" +servercfgdefault="${servercfgdir}/UT2004.ini" compressedmapsdir="${rootdir}/Maps-Compressed" -defaultcfg="${systemdir}/UT2004.ini" backupdir="${rootdir}/backups" # Logging diff --git a/UnrealTournament99/ut99server b/UnrealTournament99/ut99server index cf17c182a..a0bc80807 100644 --- a/UnrealTournament99/ut99server +++ b/UnrealTournament99/ut99server @@ -3,7 +3,7 @@ # Server Management Script # Author: Daniel Gibbs # Website: http://gameservermanagers.com -# Version: 030515 +version="010715" #### Variables #### @@ -35,11 +35,11 @@ filesdir="${rootdir}/serverfiles" systemdir="${filesdir}/System" executabledir="${systemdir}" executable="./ucc-bin" -servercfgdir="${systemdir}" servercfg="${servicename}.ini" +servercfgdir="${systemdir}" servercfgfullpath="${servercfgdir}/${servercfg}" +servercfgdefault="${servercfgdir}/Default.ini" compressedmapsdir="${rootdir}/Maps-Compressed" -defaultcfg="${systemdir}/Default.ini" backupdir="${rootdir}/backups" # Logging diff --git a/functions/fn_install_config b/functions/fn_install_config index 3a92db7f1..1add28c3f 100644 --- a/functions/fn_install_config +++ b/functions/fn_install_config @@ -2,36 +2,52 @@ # LGSM fn_install_config function # Author: Daniel Gibbs # Website: http://gameservermanagers.com -# Version: 210615 +# Version: 010715 fn_arkconfig(){ echo "" } fn_arma3config(){ -mkdir -pv "${servercfgdir}" -mv -v lgsm-default.server.cfg "${servercfgfullpath}" -mv -v lgsm-default.network.cfg "${networkcfgfullpath}" +echo "creating ${servercfg} config file." +cp -v "${servercfgdefault}" "${servercfgfullpath}" +sleep 1 +echo "creating ${networkcfg} config file." +cp -v "${networkcfgdefault}" "${networkcfgfullpath}" +sleep 1 +echo "" +} + +fn_dstconfig(){ +echo "creating ${servercfg} config file." +cp -v "${servercfgdefault}" "${servercfgfullpath}" sleep 1 echo "" } fn_goldsourceconfig(){ -echo "creating ${servicename}.cfg config file." -cp -v lgsm-default.cfg "${servercfgfullpath}" +echo "creating ${servercfg} config file." +cp -v "${servercfgdefault}" "${servercfgfullpath}" sleep 1 + +# server.cfg redirects to ${servercfg} for added security echo "creating server.cfg." touch "${defaultcfg}" sleep 1 echo "creating redirect." echo "server.cfg > ${servercfg}." echo "exec ${servercfg}" > "${defaultcfg}" +sleep 1 + +# creating other files required echo "creating listip.cfg." sleep 1 touch "${systemdir}/listip.cfg" echo "creating banned.cfg." touch "${systemdir}/banned.cfg" sleep 1 + +# allow user to input server name and password if [ -z "${autoinstall}" ]; then echo "" echo "Configuring ${gamename} Server" @@ -49,25 +65,29 @@ echo "" } fn_jc2config(){ -cd "${filesdir}" -cp -v default_config.lua config.lua +echo "creating ${servercfg} config file." +cp -v "${servercfgdefault}" "${servercfgfullpath}" sleep 1 echo "" } fn_serious3config(){ -cp -v lgsm-default.ini ${servercfg} +echo "creating ${servercfg} config file." +cp -v "${servercfgdefault}" "${servercfgfullpath}" sleep 1 echo "" echo "To edit ${gamename} server config use SS3 Server GUI 3 tool" echo "http://mrag.nl/sgui3/" sleep 1 +echo "" } fn_sourceconfig(){ -echo "creating ${servicename}.cfg config file." -cp -v lgsm-default.cfg "${servercfgfullpath}" +echo "creating ${servercfg} config file." +cp -v "${servercfgdefault}" "${servercfgfullpath}" sleep 1 + +# server.cfg redirects to ${servercfg} for added security echo "creating server.cfg." touch "${defaultcfg}" sleep 1 @@ -75,6 +95,8 @@ echo "creating redirect." echo "server.cfg > ${servercfg}." echo "exec ${servercfg}" > "${defaultcfg}" sleep 1 + +# allow user to input server name and password if [ -z "${autoinstall}" ]; then echo "" echo "Configuring ${gamename} Server" @@ -92,7 +114,7 @@ echo "" } fn_ts3config(){ -echo "Creating blank ${servercfg}" +echo "creating blank ${servercfg} config file." sleep 1 echo "${servercfg} can remain blank by default." sleep 1 @@ -103,7 +125,7 @@ touch "${servercfgfullpath}" fn_ut99config(){ echo "${defaultcfg} > ${servercfgfullpath}" -tr -d '\r' < "${defaultcfg}" > "${servercfgfullpath}" +tr -d '\r' < "${servercfgdefault}" > "${servercfgfullpath}" sleep 1 echo "" echo "Configuring ${gamename} Server" @@ -119,13 +141,15 @@ echo "" } fn_unity3dconfig(){ -cp -v serverconfig.xml ${servercfg} +echo "creating ${servercfg} config file." +cp -v "${servercfgdefault}" "${servercfgfullpath}" sleep 1 echo "" } fn_unreal2config(){ -cp -v "${defaultcfg}" "${servercfgfullpath}" +echo "creating ${servercfg} config file." +cp -v "${servercfgdefault}" "${servercfgfullpath}" sleep 1 echo "" echo "Configuring ${gamename} Server" @@ -150,6 +174,16 @@ echo "" echo "Creating Configs" echo "=================================" sleep 1 +if [ ! -d "${servercfgdir}" ]; then + echo -e "creating ${servercfgdir} dir...\c" + mkdir -pv "${servercfgdir}" + if [[ $? == 0 ]]; then + echo -e "OK" + else + echo -e "FAIL" + fi +fi + if [ "${gamename}" == "ARMA 3" ]; then cd "${systemdir}" else @@ -206,11 +240,16 @@ elif [ "${gamename}" == "Day of Defeat: Source" ]; then wget -N /dev/null https://raw.githubusercontent.com/dgibbs64/linuxgsm/master/DayOfDefeatSource/cfg/lgsm-default.cfg 2>&1 | grep -F HTTP | cut -c45- | uniq sleep 1 fn_sourceconfig -elif [ "${gamename}" == "Double Action: Boogaloo" ]; then - echo -e "downloading lgsm-default.cfg...\c" - wget -N /dev/null https://raw.githubusercontent.com/dgibbs64/linuxgsm/master/DoubleActionBoogaloo/cfg/lgsm-default.cfg 2>&1 | grep -F HTTP | cut -c45- | uniq +elif [ "${gamename}" == "Dont Starve Together" ]; then + echo -e "downloading lgsm-default.ini...\c" + wget -N /dev/null https://raw.githubusercontent.com/dgibbs64/linuxgsm/master/DontStarveTogether/lgsm-default.ini 2>&1 | grep -F HTTP | cut -c45- | uniq sleep 1 - fn_sourceconfig + fn_dstconfig + elif [ "${gamename}" == "Double Action: Boogaloo" ]; then + echo -e "downloading lgsm-default.cfg...\c" + wget -N /dev/null https://raw.githubusercontent.com/dgibbs64/linuxgsm/master/DoubleActionBoogaloo/cfg/lgsm-default.cfg 2>&1 | grep -F HTTP | cut -c45- | uniq + sleep 1 + fn_sourceconfig elif [ "${gamename}" == "Fistful of Frags" ]; then echo -e "downloading lgsm-default.cfg...\c" wget -N /dev/null https://raw.githubusercontent.com/dgibbs64/linuxgsm/master/FistfulOfFrags/cfg/lgsm-default.cfg 2>&1 | grep -F HTTP | cut -c45- | uniq @@ -282,4 +321,4 @@ elif [ "${gamename}" == "Unreal Tournament 2004" ]; then fn_unreal2config elif [ "${gamename}" == "Unreal Tournament 99" ]; then fn_ut99config -fi \ No newline at end of file +fi