Browse Source

Updates to fn_install_config

Made this function more consistent across different servers and changed
defaultconfig var to servercfgdefault
pull/450/head
Daniel Gibbs 10 years ago
parent
commit
9eea49a923
  1. 6
      7DaysToDie/sdtdserver
  2. 3
      ARKSurvivalEvolved/arkserver
  3. 12
      Arma3/arma3server
  4. 6
      BlackMesa/bmdmserver
  5. 8
      BladeSymphony/bsserver
  6. 8
      CounterStrike/csserver
  7. 14
      CounterStrikeConditionZero/csczserver
  8. 10
      CounterStrikeGlobalOffensive/csgoserver
  9. 6
      CounterStrikeSource/cssserver
  10. 6
      DayOfDefeat/dodserver
  11. 6
      DayOfDefeatSource/dodsserver
  12. 6
      DeathmatchClassic/dmcserver
  13. 8
      DoubleActionBoogaloo/dabserver
  14. 6
      FistfulOfFrags/fofserver
  15. 6
      GarrysMod/gmodserver
  16. 6
      HalfLife2Deathmatch/hl2dmserver
  17. 8
      HalfLifeDeathmatch/hldmserver
  18. 6
      HalfLifeDeathmatchSource/hldmsserver
  19. 6
      Insurgency/insserver
  20. 5
      JustCause2/jc2server
  21. 12
      KillingFloor/kfserver
  22. 6
      Left4Dead/l4dserver
  23. 6
      Left4Dead2/l4d2server
  24. 12
      Mumble/mumbleserver
  25. 2
      NS2Combat/ns2cserver
  26. 2
      NaturalSelection2/ns2server
  27. 6
      NoMoreRoomInHell/nmrihserver
  28. 4
      OpposingForce/opforserver
  29. 5
      ProjectZomboid/pzserver
  30. 6
      RedOrchestra/roserver
  31. 6
      Ricochet/ricochetserver
  32. 7
      SeriousSam3BFE/ss3sserver
  33. 8
      StarBound/sbserver
  34. 6
      TeamFortress2/tf2server
  35. 6
      TeamFortressClassic/tfcserver
  36. 5
      TeamSpeak3/ts3server
  37. 6
      UnrealTournament2004/ut2k4server
  38. 6
      UnrealTournament99/ut99server
  39. 79
      functions/fn_install_config

6
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

3
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

12
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

6
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

8
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

8
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

14
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
fn_getopt

10
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
fn_getopt

6
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

6
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

6
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

6
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

8
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

6
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

6
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

6
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

8
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
fn_getopt

6
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

6
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

5
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

12
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

6
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

6
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

12
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 protected]"
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
fn_getopt

2
NS2Combat/ns2cserver

@ -3,7 +3,7 @@
# Server Management Script
# Author: Daniel Gibbs
# Website: http://gameservermanagers.com
# Version: 090515
version="010715"
#### Variables ####

2
NaturalSelection2/ns2server

@ -3,7 +3,7 @@
# Server Management Script
# Author: Daniel Gibbs
# Website: http://gameservermanagers.com
# Version: 090515
version="010715"
#### Variables ####

6
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

4
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"

5
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

6
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

6
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

7
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

8
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
fn_getopt

6
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

6
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

5
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

6
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

6
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

79
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
fi

Loading…
Cancel
Save