Browse Source

Merge branch 'develop'

Conflicts:
	lgsm/functions/core_functions.sh
pull/1197/merge
Daniel Gibbs 8 years ago
parent
commit
04b9a022ea
  1. 4
      7DaysToDie/sdtdserver
  2. 4
      ARKSurvivalEvolved/arkserver
  3. 4
      Arma3/arma3server
  4. 4
      Battlefield1942/bf1942server
  5. 4
      BlackMesa/bmdmserver
  6. 4
      BladeSymphony/bsserver
  7. 4
      BrainBread2/bb2server
  8. 4
      CallOfDuty/codserver
  9. 4
      CallOfDuty2/cod2server
  10. 4
      CodenameCURE/ccserver
  11. 4
      CounterStrike/csserver
  12. 4
      CounterStrikeConditionZero/csczserver
  13. 4
      CounterStrikeGlobalOffensive/csgoserver
  14. 4
      CounterStrikeSource/cssserver
  15. 4
      DayOfDefeat/dodserver
  16. 4
      DayOfDefeatSource/dodsserver
  17. 4
      DayOfInfamy/doiserver
  18. 4
      DeathmatchClassic/dmcserver
  19. 4
      DontStarveTogether/dstserver
  20. 4
      DoubleActionBoogaloo/dabserver
  21. 2
      EmpiresMod/emserver
  22. 4
      FistfulOfFrags/fofserver
  23. 4
      GarrysMod/gmodserver
  24. 4
      GoldenEyeSource/gesserver
  25. 4
      HalfLife2Deathmatch/hl2dmserver
  26. 4
      HalfLifeDeathmatch/hldmserver
  27. 4
      HalfLifeDeathmatchSource/hldmsserver
  28. 4
      Hurtworld/hwserver
  29. 4
      Insurgency/insserver
  30. 6
      JustCause2/jc2server
  31. 4
      KillingFloor/kfserver
  32. 4
      Left4Dead/l4dserver
  33. 4
      Left4Dead2/l4d2server
  34. 4
      Minecraft/mcserver
  35. 4
      Mumble/mumbleserver
  36. 4
      NS2Combat/ns2cserver
  37. 4
      NaturalSelection2/ns2server
  38. 4
      NoMoreRoomInHell/nmrihserver
  39. 4
      OpposingForce/opforserver
  40. 4
      PiratesVikingandKnightsII/pvkiiserver
  41. 10
      ProjectZomboid/pzserver
  42. 4
      Quake2/q2server
  43. 4
      Quake3/q3server
  44. 4
      QuakeLive/qlserver
  45. 1
      QuakeWorld/qwserver
  46. 4
      RedOrchestra/roserver
  47. 4
      Ricochet/ricochetserver
  48. 8
      Rust/rustserver
  49. 4
      SeriousSam3BFE/ss3sserver
  50. 4
      Starbound/sbserver
  51. 4
      SvenCoop/svenserver
  52. 4
      TeamFortress2/tf2server
  53. 4
      TeamFortressClassic/tfcserver
  54. 4
      TeamSpeak3/ts3server
  55. 4
      Teeworlds/twserver
  56. 4
      Terraria/terrariaserver
  57. 4
      UnrealTournament/utserver
  58. 4
      UnrealTournament2004/ut2k4server
  59. 4
      UnrealTournament3/ut3server
  60. 4
      UnrealTournament99/ut99server
  61. 4
      WolfensteinEnemyTerritory/wetserver
  62. 2
      lgsm/functions/check_ip.sh
  63. 22
      lgsm/functions/command_backup.sh
  64. 2
      lgsm/functions/command_start.sh
  65. 26
      lgsm/functions/command_ts3_server_pass.sh
  66. 10
      lgsm/functions/core_functions.sh
  67. 5
      lgsm/functions/install_config.sh
  68. 114
      tests/tests_jc2server.sh

4
7DaysToDie/sdtdserver

@ -14,7 +14,7 @@ if [ -f ".dev-debug" ]; then
set -x
fi
version="161030"
version="161113"
##########################
######## Settings ########
@ -43,9 +43,11 @@ parms="-logfile ${gamelogdir}/output_log__`date +%Y-%m-%d__%H-%M-%S`.txt -quit -
emailalert="off"
email="[email protected]"
emailfrom=""
# Pushbullet Alerts | https://github.com/GameServerManagers/LinuxGSM/wiki/Pushbullet
pushbulletalert="off"
pushbullettoken="accesstoken"
channeltag=""
## Updating | https://github.com/GameServerManagers/LinuxGSM/wiki/Update
updateonstart="off"

4
ARKSurvivalEvolved/arkserver

@ -14,7 +14,7 @@ if [ -f ".dev-debug" ]; then
set -x
fi
version="161030"
version="161113"
##########################
######## Settings ########
@ -45,9 +45,11 @@ parms="\"TheIsland?listen?MultiHome=${ip}?SessionName=${servername}?MaxPlayers=$
emailalert="off"
email="[email protected]"
emailfrom=""
# Pushbullet Alerts | https://github.com/GameServerManagers/LinuxGSM/wiki/Pushbullet
pushbulletalert="off"
pushbullettoken="accesstoken"
channeltag=""
## Updating | https://github.com/GameServerManagers/LinuxGSM/wiki/Update
updateonstart="off"

4
Arma3/arma3server

@ -14,7 +14,7 @@ if [ -f ".dev-debug" ]; then
set -x
fi
version="161030"
version="161113"
##########################
######## Settings ########
@ -59,9 +59,11 @@ parms="-netlog -ip=${ip} -port=${port} -cfg=${networkcfgfullpath} -config=${serv
emailalert="off"
email="[email protected]"
emailfrom=""
# Pushbullet Alerts | https://github.com/GameServerManagers/LinuxGSM/wiki/Pushbullet
pushbulletalert="off"
pushbullettoken="accesstoken"
channeltag=""
## Updating | https://github.com/GameServerManagers/LinuxGSM/wiki/Update
updateonstart="off"

4
Battlefield1942/bf1942server

@ -14,7 +14,7 @@ if [ -f ".dev-debug" ]; then
set -x
fi
version="161030"
version="161113"
##########################
######## Settings ########
@ -35,9 +35,11 @@ parms="+hostServer 1 +dedicated 1"
emailalert="off"
email="[email protected]"
emailfrom=""
# Pushbullet Alerts | https://github.com/GameServerManagers/LinuxGSM/wiki/Pushbullet
pushbulletalert="off"
pushbullettoken="accesstoken"
channeltag=""
## Updating | https://github.com/GameServerManagers/LinuxGSM/wiki/Update
updateonstart="off"

4
BlackMesa/bmdmserver

@ -14,7 +14,7 @@ if [ -f ".dev-debug" ]; then
set -x
fi
version="161030"
version="161113"
##########################
######## Settings ########
@ -49,9 +49,11 @@ parms="-game bms -strictportbind -ip ${ip} -port ${port} +clientport ${clientpor
emailalert="off"
email="[email protected]"
emailfrom=""
# Pushbullet Alerts | https://github.com/GameServerManagers/LinuxGSM/wiki/Pushbullet
pushbulletalert="off"
pushbullettoken="accesstoken"
channeltag=""
## Updating | https://github.com/GameServerManagers/LinuxGSM/wiki/Update
updateonstart="off"

4
BladeSymphony/bsserver

@ -14,7 +14,7 @@ if [ -f ".dev-debug" ]; then
set -x
fi
version="161030"
version="161113"
##########################
######## Settings ########
@ -48,9 +48,11 @@ parms="-autoupdate -strictportbind -ip ${ip} -port ${port} +clientport ${clientp
emailalert="off"
email="[email protected]"
emailfrom=""
# Pushbullet Alerts | https://github.com/GameServerManagers/LinuxGSM/wiki/Pushbullet
pushbulletalert="off"
pushbullettoken="accesstoken"
channeltag=""
## Updating | https://github.com/GameServerManagers/LinuxGSM/wiki/Update
updateonstart="off"

4
BrainBread2/bb2server

@ -14,7 +14,7 @@ if [ -f ".dev-debug" ]; then
set -x
fi
version="161030"
version="161113"
##########################
######## Settings ########
@ -52,9 +52,11 @@ parms="-game brainbread2 -insecure -strictportbind -ip ${ip} -port ${port} +clie
emailalert="off"
email="[email protected]"
emailfrom=""
# Pushbullet Alerts | https://github.com/GameServerManagers/LinuxGSM/wiki/Pushbullet
pushbulletalert="off"
pushbullettoken="accesstoken"
channeltag=""
## Updating | https://github.com/GameServerManagers/LinuxGSM/wiki/Update
updateonstart="off"

4
CallOfDuty/codserver

@ -14,7 +14,7 @@ if [ -f ".dev-debug" ]; then
set -x
fi
version="161030"
version="161113"
##########################
######## Settings ########
@ -41,9 +41,11 @@ parms="+set sv_punkbuster 0 +set fs_basepath ${filesdir} +set dedicated 1 +set n
emailalert="off"
email="[email protected]"
emailfrom=""
# Pushbullet Alerts | https://github.com/GameServerManagers/LinuxGSM/wiki/Pushbullet
pushbulletalert="off"
pushbullettoken="accesstoken"
channeltag=""
## Backup | https://github.com/GameServerManagers/LinuxGSM/wiki/Backup
maxbackups="4"

4
CallOfDuty2/cod2server

@ -14,7 +14,7 @@ if [ -f ".dev-debug" ]; then
set -x
fi
version="161030"
version="161113"
##########################
######## Settings ########
@ -42,9 +42,11 @@ parms="+set sv_punkbuster 0 +set fs_basepath ${filesdir} +set dedicated 1 +set n
emailalert="off"
email="[email protected]"
emailfrom=""
# Pushbullet Alerts | https://github.com/GameServerManagers/LinuxGSM/wiki/Pushbullet
pushbulletalert="off"
pushbullettoken="accesstoken"
channeltag=""
## Backup | https://github.com/GameServerManagers/LinuxGSM/wiki/Backup
maxbackups="4"

4
CodenameCURE/ccserver

@ -14,7 +14,7 @@ if [ -f ".dev-debug" ]; then
set -x
fi
version="161030"
version="161113"
##########################
######## Settings ########
@ -42,9 +42,11 @@ parms="-game cure -insecure -strictportbind -ip ${ip} -port ${port} +clientport
emailalert="off"
email="[email protected]"
emailfrom=""
# Pushbullet Alerts | https://github.com/GameServerManagers/LinuxGSM/wiki/Pushbullet
pushbulletalert="off"
pushbullettoken="accesstoken"
channeltag=""
## Updating | https://github.com/GameServerManagers/LinuxGSM/wiki/Update
updateonstart="off"

4
CounterStrike/csserver

@ -14,7 +14,7 @@ if [ -f ".dev-debug" ]; then
set -x
fi
version="161030"
version="161113"
##########################
######## Settings ########
@ -43,9 +43,11 @@ parms="-game cstrike -strictportbind +ip ${ip} -port ${port} +clientport ${clien
emailalert="off"
email="[email protected]"
emailfrom=""
# Pushbullet Alerts | https://github.com/GameServerManagers/LinuxGSM/wiki/Pushbullet
pushbulletalert="off"
pushbullettoken="accesstoken"
channeltag=""
## Updating | https://github.com/GameServerManagers/LinuxGSM/wiki/Update
updateonstart="off"

4
CounterStrikeConditionZero/csczserver

@ -14,7 +14,7 @@ if [ -f ".dev-debug" ]; then
set -x
fi
version="161030"
version="161113"
##########################
######## Settings ########
@ -43,9 +43,11 @@ parms="-game czero -strictportbind +ip ${ip} -port ${port} +clientport ${clientp
emailalert="off"
email="[email protected]"
emailfrom=""
# Pushbullet Alerts | https://github.com/GameServerManagers/LinuxGSM/wiki/Pushbullet
pushbulletalert="off"
pushbullettoken="accesstoken"
channeltag=""
## Updating | https://github.com/GameServerManagers/LinuxGSM/wiki/Update
updateonstart="off"

4
CounterStrikeGlobalOffensive/csgoserver

@ -14,7 +14,7 @@ if [ -f ".dev-debug" ]; then
set -x
fi
version="161030"
version="161113"
##########################
######## Settings ########
@ -67,9 +67,11 @@ parms="-game csgo -usercon -strictportbind -ip ${ip} -port ${port} +clientport $
emailalert="off"
email="[email protected]"
emailfrom=""
# Pushbullet Alerts | https://github.com/GameServerManagers/LinuxGSM/wiki/Pushbullet
pushbulletalert="off"
pushbullettoken="accesstoken"
channeltag=""
## Updating | https://github.com/GameServerManagers/LinuxGSM/wiki/Update
updateonstart="off"

4
CounterStrikeSource/cssserver

@ -14,7 +14,7 @@ if [ -f ".dev-debug" ]; then
set -x
fi
version="161030"
version="161113"
##########################
######## Settings ########
@ -50,9 +50,11 @@ parms="-game cstrike -strictportbind -ip ${ip} -port ${port} +clientport ${clien
emailalert="off"
email="[email protected]"
emailfrom=""
# Pushbullet Alerts | https://github.com/GameServerManagers/LinuxGSM/wiki/Pushbullet
pushbulletalert="off"
pushbullettoken="accesstoken"
channeltag=""
## Updating | https://github.com/GameServerManagers/LinuxGSM/wiki/Update
updateonstart="off"

4
DayOfDefeat/dodserver

@ -14,7 +14,7 @@ if [ -f ".dev-debug" ]; then
set -x
fi
version="161030"
version="161113"
##########################
######## Settings ########
@ -44,9 +44,11 @@ parms="-game dod -strictportbind +ip ${ip} -port ${port} +clientport ${clientpor
emailalert="off"
email="[email protected]"
emailfrom=""
# Pushbullet Alerts | https://github.com/GameServerManagers/LinuxGSM/wiki/Pushbullet
pushbulletalert="off"
pushbullettoken="accesstoken"
channeltag=""
## Updating | https://github.com/GameServerManagers/LinuxGSM/wiki/Update
updateonstart="off"

4
DayOfDefeatSource/dodsserver

@ -14,7 +14,7 @@ if [ -f ".dev-debug" ]; then
set -x
fi
version="161030"
version="161113"
##########################
######## Settings ########
@ -44,9 +44,11 @@ parms="-game dod -strictportbind -ip ${ip} -port ${port} +clientport ${clientpor
emailalert="off"
email="[email protected]"
emailfrom=""
# Pushbullet Alerts | https://github.com/GameServerManagers/LinuxGSM/wiki/Pushbullet
pushbulletalert="off"
pushbullettoken="accesstoken"
channeltag=""
## Updating | https://github.com/GameServerManagers/LinuxGSM/wiki/Update
updateonstart="off"

4
DayOfInfamy/doiserver

@ -14,7 +14,7 @@ if [ -f ".dev-debug" ]; then
set -x
fi
version="161030"
version="161113"
##########################
######## Settings ########
@ -46,9 +46,11 @@ parms="-game doi -strictportbind -ip ${ip} -port ${port} +clientport ${clientpor
emailalert="off"
email="[email protected]"
emailfrom=""
# Pushbullet Alerts | https://github.com/GameServerManagers/LinuxGSM/wiki/Pushbullet
pushbulletalert="off"
pushbullettoken="accesstoken"
channeltag=""
## Updating | https://github.com/GameServerManagers/LinuxGSM/wiki/Update
updateonstart="off"

4
DeathmatchClassic/dmcserver

@ -14,7 +14,7 @@ if [ -f ".dev-debug" ]; then
set -x
fi
version="161030"
version="161113"
##########################
######## Settings ########
@ -43,9 +43,11 @@ parms="-game dmc -strictportbind +ip ${ip} -port ${port} +clientport ${clientpor
emailalert="off"
email="[email protected]"
emailfrom=""
# Pushbullet Alerts | https://github.com/GameServerManagers/LinuxGSM/wiki/Pushbullet
pushbulletalert="off"
pushbullettoken="accesstoken"
channeltag=""
## Updating | https://github.com/GameServerManagers/LinuxGSM/wiki/Update
updateonstart="off"

4
DontStarveTogether/dstserver

@ -14,7 +14,7 @@ if [ -f ".dev-debug" ]; then
set -x
fi
version="161030"
version="161113"
##########################
######## Settings ########
@ -42,9 +42,11 @@ parms="-console -cluster MyDediServer -shard Master"
emailalert="off"
email="[email protected]"
emailfrom=""
# Pushbullet Alerts | https://github.com/GameServerManagers/LinuxGSM/wiki/Pushbullet
pushbulletalert="off"
pushbullettoken="accesstoken"
channeltag=""
## Updating | https://github.com/GameServerManagers/LinuxGSM/wiki/Update
updateonstart="off"

4
DoubleActionBoogaloo/dabserver

@ -14,7 +14,7 @@ if [ -f ".dev-debug" ]; then
set -x
fi
version="161030"
version="161113"
##########################
######## Settings ########
@ -44,9 +44,11 @@ parms="-strictportbind -ip ${ip} -port ${port} +clientport ${clientport} +tv_por
emailalert="off"
email="[email protected]"
emailfrom=""
# Pushbullet Alerts | https://github.com/GameServerManagers/LinuxGSM/wiki/Pushbullet
pushbulletalert="off"
pushbullettoken="accesstoken"
channeltag=""
## Updating | https://github.com/GameServerManagers/LinuxGSM/wiki/Update
updateonstart="off"

2
EmpiresMod/emserver

@ -28,9 +28,11 @@ parms="-game empires -strictportbind -ip ${ip} -port ${port} +clientport ${clien
emailalert="off"
email="[email protected]"
emailfrom=""
# Pushbullet Alerts | https://github.com/GameServerManagers/LinuxGSM/wiki/Pushbullet
pushbulletalert="off"
pushbullettoken="accesstoken"
channeltag=""
## Updating | https://github.com/GameServerManagers/LinuxGSM/wiki/Update
updateonstart="off"

4
FistfulOfFrags/fofserver

@ -14,7 +14,7 @@ if [ -f ".dev-debug" ]; then
set -x
fi
version="161030"
version="161113"
##########################
######## Settings ########
@ -44,9 +44,11 @@ parms="-game fof -strictportbind -ip ${ip} -port ${port} +clientport ${clientpor
emailalert="off"
email="[email protected]"
emailfrom=""
# Pushbullet Alerts | https://github.com/GameServerManagers/LinuxGSM/wiki/Pushbullet
pushbulletalert="off"
pushbullettoken="accesstoken"
channeltag=""
## Updating | https://github.com/GameServerManagers/LinuxGSM/wiki/Update
updateonstart="off"

4
GarrysMod/gmodserver

@ -14,7 +14,7 @@ if [ -f ".dev-debug" ]; then
set -x
fi
version="161030"
version="161113"
##########################
######## Settings ########
@ -59,9 +59,11 @@ parms="-game garrysmod -strictportbind -ip ${ip} -port ${port} -tickrate ${tickr
emailalert="off"
email="[email protected]"
emailfrom=""
# Pushbullet Alerts | https://github.com/GameServerManagers/LinuxGSM/wiki/Pushbullet
pushbulletalert="off"
pushbullettoken="accesstoken"
channeltag=""
## Updating | https://github.com/GameServerManagers/LinuxGSM/wiki/Update
updateonstart="off"

4
GoldenEyeSource/gesserver

@ -14,7 +14,7 @@ if [ -f ".dev-debug" ]; then
set -x
fi
version="161030"
version="161113"
##########################
######## Settings ########
@ -44,9 +44,11 @@ parms="-game gesource -strictportbind -ip ${ip} -port ${port} +clientport ${clie
emailalert="off"
email="[email protected]"
emailfrom=""
# Pushbullet Alerts | https://github.com/GameServerManagers/LinuxGSM/wiki/Pushbullet
pushbulletalert="off"
pushbullettoken="accesstoken"
channeltag=""
## Updating | https://github.com/GameServerManagers/LinuxGSM/wiki/Update
updateonstart="off"

4
HalfLife2Deathmatch/hl2dmserver

@ -14,7 +14,7 @@ if [ -f ".dev-debug" ]; then
set -x
fi
version="161030"
version="161113"
##########################
######## Settings ########
@ -44,9 +44,11 @@ parms="-game hl2mp -strictportbind -ip ${ip} -port ${port} +clientport ${clientp
emailalert="off"
email="[email protected]"
emailfrom=""
# Pushbullet Alerts | https://github.com/GameServerManagers/LinuxGSM/wiki/Pushbullet
pushbulletalert="off"
pushbullettoken="accesstoken"
channeltag=""
## Updating | https://github.com/GameServerManagers/LinuxGSM/wiki/Update
updateonstart="off"

4
HalfLifeDeathmatch/hldmserver

@ -14,7 +14,7 @@ if [ -f ".dev-debug" ]; then
set -x
fi
version="161030"
version="161113"
##########################
######## Settings ########
@ -43,9 +43,11 @@ parms="-game valve -strictportbind +ip ${ip} -port ${port} +clientport ${clientp
emailalert="off"
email="[email protected]"
emailfrom=""
# Pushbullet Alerts | https://github.com/GameServerManagers/LinuxGSM/wiki/Pushbullet
pushbulletalert="off"
pushbullettoken="accesstoken"
channeltag=""
## Updating | https://github.com/GameServerManagers/LinuxGSM/wiki/Update
updateonstart="off"

4
HalfLifeDeathmatchSource/hldmsserver

@ -14,7 +14,7 @@ if [ -f ".dev-debug" ]; then
set -x
fi
version="161030"
version="161113"
##########################
######## Settings ########
@ -44,9 +44,11 @@ parms="-game hl1mp -strictportbind -ip ${ip} -port ${port} +clientport ${clientp
emailalert="off"
email="[email protected]"
emailfrom=""
# Pushbullet Alerts | https://github.com/GameServerManagers/LinuxGSM/wiki/Pushbullet
pushbulletalert="off"
pushbullettoken="accesstoken"
channeltag=""
## Updating | https://github.com/GameServerManagers/LinuxGSM/wiki/Update
updateonstart="off"

4
Hurtworld/hwserver

@ -14,7 +14,7 @@ if [ -f ".dev-debug" ]; then
set -x
fi
version="161030"
version="161113"
##########################
######## Settings ########
@ -56,9 +56,11 @@ parms="-batchmode -nographics -exec \"host ${port} ${map} ${loadsave};queryport
emailalert="off"
email="[email protected]"
emailfrom=""
# Pushbullet Alerts | https://github.com/GameServerManagers/LinuxGSM/wiki/Pushbullet
pushbulletalert="off"
pushbullettoken="accesstoken"
channeltag=""
## Updating | https://github.com/GameServerManagers/LinuxGSM/wiki/Update
updateonstart="off"

4
Insurgency/insserver

@ -14,7 +14,7 @@ if [ -f ".dev-debug" ]; then
set -x
fi
version="161030"
version="161113"
##########################
######## Settings ########
@ -46,9 +46,11 @@ parms="-game insurgency -strictportbind -ip ${ip} -port ${port} +clientport ${cl
emailalert="off"
email="[email protected]"
emailfrom=""
# Pushbullet Alerts | https://github.com/GameServerManagers/LinuxGSM/wiki/Pushbullet
pushbulletalert="off"
pushbullettoken="accesstoken"
channeltag=""
## Updating | https://github.com/GameServerManagers/LinuxGSM/wiki/Update
updateonstart="off"

6
JustCause2/jc2server

@ -3,7 +3,7 @@
# Project: Game Server Managers - LinuxGSM
# Author: Daniel Gibbs
# License: MIT License, Copyright (c) 2016 Daniel Gibbs
# Purpose: GAMENAME | Server Management Script
# Purpose: Just Cause 2 | Server Management Script
# Contributors: https://github.com/GameServerManagers/LinuxGSM/graphs/contributors
# Documentation: https://github.com/GameServerManagers/LinuxGSM/wiki
# Website: https://gameservermanagers.com
@ -15,7 +15,7 @@ if [ -f ".dev-debug" ]; then
set -x
fi
version="161030"
version="161113"
##########################
######## Settings ########
@ -38,9 +38,11 @@ parms=""
emailalert="off"
email="[email protected]"
emailfrom=""
# Pushbullet Alerts | https://github.com/GameServerManagers/LinuxGSM/wiki/Pushbullet
pushbulletalert="off"
pushbullettoken="accesstoken"
channeltag=""
## Updating | https://github.com/GameServerManagers/LinuxGSM/wiki/Update
updateonstart="off"

4
KillingFloor/kfserver

@ -14,7 +14,7 @@ if [ -f ".dev-debug" ]; then
set -x
fi
version="161030"
version="161113"
##########################
######## Settings ########
@ -46,9 +46,11 @@ parms="server ${defaultmap}?game=KFmod.KFGameType?VACSecured=true -nohomedir ini
emailalert="off"
email="[email protected]"
emailfrom=""
# Pushbullet Alerts | https://github.com/GameServerManagers/LinuxGSM/wiki/Pushbullet
pushbulletalert="off"
pushbullettoken="accesstoken"
channeltag=""
## Updating | https://github.com/GameServerManagers/LinuxGSM/wiki/Update
updateonstart="off"

4
Left4Dead/l4dserver

@ -14,7 +14,7 @@ if [ -f ".dev-debug" ]; then
set -x
fi
version="161030"
version="161113"
##########################
######## Settings ########
@ -43,9 +43,11 @@ parms="-game left4dead -strictportbind -ip ${ip} -port ${port} +clientport ${cli
emailalert="off"
email="[email protected]"
emailfrom=""
# Pushbullet Alerts | https://github.com/GameServerManagers/LinuxGSM/wiki/Pushbullet
pushbulletalert="off"
pushbullettoken="accesstoken"
channeltag=""
## Updating | https://github.com/GameServerManagers/LinuxGSM/wiki/Update
updateonstart="off"

4
Left4Dead2/l4d2server

@ -14,7 +14,7 @@ if [ -f ".dev-debug" ]; then
set -x
fi
version="161030"
version="161113"
##########################
######## Settings ########
@ -43,9 +43,11 @@ parms="-game left4dead2 -strictportbind -ip ${ip} -port ${port} +clientport ${cl
emailalert="off"
email="[email protected]"
emailfrom=""
# Pushbullet Alerts | https://github.com/GameServerManagers/LinuxGSM/wiki/Pushbullet
pushbulletalert="off"
pushbullettoken="accesstoken"
channeltag=""
## Updating | https://github.com/GameServerManagers/LinuxGSM/wiki/Update
updateonstart="off"

4
Minecraft/mcserver

@ -14,7 +14,7 @@ if [ -f ".dev-debug" ]; then
set -x
fi
version="161030"
version="161113"
##########################
######## Settings ########
@ -38,9 +38,11 @@ parms="nogui"
emailalert="off"
email="[email protected]"
emailfrom=""
# Pushbullet Alerts | https://github.com/GameServerManagers/LinuxGSM/wiki/Pushbullet
pushbulletalert="off"
pushbullettoken="accesstoken"
channeltag=""
## Updating | https://github.com/GameServerManagers/LinuxGSM/wiki/Update
updateonstart="off"

4
Mumble/mumbleserver

@ -14,7 +14,7 @@ if [ -f ".dev-debug" ]; then
set -x
fi
version="161030"
version="161113"
##########################
######## Settings ########
@ -37,9 +37,11 @@ parms="-fg -ini ${servercfgfullpath}"
emailalert="off"
email="[email protected]"
emailfrom=""
# Pushbullet Alerts | https://github.com/GameServerManagers/LinuxGSM/wiki/Pushbullet
pushbulletalert="off"
pushbullettoken="accesstoken"
channeltag=""
## Updating | https://github.com/GameServerManagers/LinuxGSM/wiki/Update
updateonstart="off"

4
NS2Combat/ns2cserver

@ -14,7 +14,7 @@ if [ -f ".dev-debug" ]; then
set -x
fi
version="161030"
version="161113"
##########################
######## Settings ########
@ -55,9 +55,11 @@ parms="-name \"${servername}\" -port ${port} -webadmin -webdomain ${ip} -webuser
emailalert="off"
email="[email protected]"
emailfrom=""
# Pushbullet Alerts | https://github.com/GameServerManagers/LinuxGSM/wiki/Pushbullet
pushbulletalert="off"
pushbullettoken="accesstoken"
channeltag=""
## Updating | https://github.com/GameServerManagers/LinuxGSM/wiki/Update
updateonstart="off"

4
NaturalSelection2/ns2server

@ -14,7 +14,7 @@ if [ -f ".dev-debug" ]; then
set -x
fi
version="161030"
version="161113"
##########################
######## Settings ########
@ -55,9 +55,11 @@ parms="-name \"${servername}\" -port ${port} -webadmin -webdomain ${ip} -webuser
emailalert="off"
email="[email protected]"
emailfrom=""
# Pushbullet Alerts | https://github.com/GameServerManagers/LinuxGSM/wiki/Pushbullet
pushbulletalert="off"
pushbullettoken="accesstoken"
channeltag=""
## Updating | https://github.com/GameServerManagers/LinuxGSM/wiki/Update
updateonstart="off"

4
NoMoreRoomInHell/nmrihserver

@ -14,7 +14,7 @@ if [ -f ".dev-debug" ]; then
set -x
fi
version="161030"
version="161113"
##########################
######## Settings ########
@ -49,9 +49,11 @@ parms="-game nmrih -insecure -strictportbind -ip ${ip} -port ${port} +clientport
emailalert="off"
email="[email protected]"
emailfrom=""
# Pushbullet Alerts | https://github.com/GameServerManagers/LinuxGSM/wiki/Pushbullet
pushbulletalert="off"
pushbullettoken="accesstoken"
channeltag=""
## Updating | https://github.com/GameServerManagers/LinuxGSM/wiki/Update
updateonstart="off"

4
OpposingForce/opforserver

@ -14,7 +14,7 @@ if [ -f ".dev-debug" ]; then
set -x
fi
version="161030"
version="161113"
##########################
######## Settings ########
@ -43,9 +43,11 @@ parms="-game gearbox -strictportbind +ip ${ip} -port ${port} +clientport ${clien
emailalert="off"
email="[email protected]"
emailfrom=""
# Pushbullet Alerts | https://github.com/GameServerManagers/LinuxGSM/wiki/Pushbullet
pushbulletalert="off"
pushbullettoken="accesstoken"
channeltag=""
## Updating | https://github.com/GameServerManagers/LinuxGSM/wiki/Update
updateonstart="off"

4
PiratesVikingandKnightsII/pvkiiserver

@ -14,7 +14,7 @@ if [ -f ".dev-debug" ]; then
set -x
fi
version="161030"
version="161113"
##########################
######## Settings ########
@ -44,9 +44,11 @@ parms="-game pvkii -strictportbind -ip ${ip} -port ${port} +clientport ${clientp
emailalert="off"
email="[email protected]"
emailfrom=""
# Pushbullet Alerts | https://github.com/GameServerManagers/LinuxGSM/wiki/Pushbullet
pushbulletalert="off"
pushbullettoken="accesstoken"
channeltag=""
## Updating | https://github.com/GameServerManagers/LinuxGSM/wiki/Update
updateonstart="off"

10
ProjectZomboid/pzserver

@ -14,7 +14,7 @@ if [ -f ".dev-debug" ]; then
set -x
fi
version="161030"
version="161113"
##########################
######## Settings ########
@ -27,7 +27,7 @@ adminpassword="CHANGE_ME"
ip="0.0.0.0"
fn_parms(){
parms="-ip ${ip} -adminpassword \"${adminpassword}\""
parms="-ip ${ip} -adminpassword \"${adminpassword}\" -servername ${servicename}"
}
#### LinuxGSM Settings ####
@ -38,9 +38,11 @@ parms="-ip ${ip} -adminpassword \"${adminpassword}\""
emailalert="off"
email="[email protected]"
emailfrom=""
# Pushbullet Alerts | https://github.com/GameServerManagers/LinuxGSM/wiki/Pushbullet
pushbulletalert="off"
pushbullettoken="accesstoken"
channeltag=""
## Updating | https://github.com/GameServerManagers/LinuxGSM/wiki/Update
updateonstart="off"
@ -96,8 +98,8 @@ filesdir="${rootdir}/serverfiles"
systemdir="${filesdir}"
executabledir="${filesdir}"
executable="./start-server.sh"
servercfg="server.ini"
servercfgdefault="server.cfg"
servercfg="${servicename}.ini"
servercfgdefault="server.ini"
servercfgdir="${HOME}/Zomboid/Server"
servercfgfullpath="${servercfgdir}/${servercfg}"

4
Quake2/q2server

@ -14,7 +14,7 @@ if [ -f ".dev-debug" ]; then
set -x
fi
version="161030"
version="161113"
##########################
######## Settings ########
@ -39,9 +39,11 @@ parms="+set dedicated 1 +set ip ${ip} +set port ${port} +exec ${servercfg} +set
emailalert="off"
email="[email protected]"
emailfrom=""
# Pushbullet Alerts | https://github.com/GameServerManagers/LinuxGSM/wiki/Pushbullet
pushbulletalert="off"
pushbullettoken="accesstoken"
channeltag=""
## Backup | https://github.com/GameServerManagers/LinuxGSM/wiki/Backup
maxbackups="4"

4
Quake3/q3server

@ -14,7 +14,7 @@ if [ -f ".dev-debug" ]; then
set -x
fi
version="161030"
version="161113"
##########################
######## Settings ########
@ -40,9 +40,11 @@ parms="+set sv_punkbuster 0 +set fs_basepath ${filesdir} +set dedicated 1 +set c
emailalert="off"
email="[email protected]"
emailfrom=""
# Pushbullet Alerts | https://github.com/GameServerManagers/LinuxGSM/wiki/Pushbullet
pushbulletalert="off"
pushbullettoken="accesstoken"
channeltag=""
## Backup | https://github.com/GameServerManagers/LinuxGSM/wiki/Backup
maxbackups="4"

4
QuakeLive/qlserver

@ -14,7 +14,7 @@ if [ -f ".dev-debug" ]; then
set -x
fi
version="161030"
version="161113"
##########################
######## Settings ########
@ -47,9 +47,11 @@ parms="+set net_strict 1 +set net_ip ${ip} +set net_port ${port} +set fs_homepat
emailalert="off"
email="[email protected]"
emailfrom=""
# Pushbullet Alerts | https://github.com/GameServerManagers/LinuxGSM/wiki/Pushbullet
pushbulletalert="off"
pushbullettoken="accesstoken"
channeltag=""
## Updating | https://github.com/GameServerManagers/LinuxGSM/wiki/Update
updateonstart="off"

1
QuakeWorld/qwserver

@ -24,6 +24,7 @@ email="[email protected]"
# https://www.pushbullet.com/#settings
pushbulletalert="off"
pushbullettoken="accesstoken"
channeltag=""
# Start Variables
ip="0.0.0.0"

4
RedOrchestra/roserver

@ -14,7 +14,7 @@ if [ -f ".dev-debug" ]; then
set -x
fi
version="161030"
version="161113"
##########################
######## Settings ########
@ -44,9 +44,11 @@ parms="server ${defaultmap}?game=ROGame.ROTeamGame?VACSecured=true -nohomedir in
emailalert="off"
email="[email protected]"
emailfrom=""
# Pushbullet Alerts | https://github.com/GameServerManagers/LinuxGSM/wiki/Pushbullet
pushbulletalert="off"
pushbullettoken="accesstoken"
channeltag=""
## Updating | https://github.com/GameServerManagers/LinuxGSM/wiki/Update
updateonstart="off"

4
Ricochet/ricochetserver

@ -14,7 +14,7 @@ if [ -f ".dev-debug" ]; then
set -x
fi
version="161030"
version="161113"
##########################
######## Settings ########
@ -67,9 +67,11 @@ parms=""
emailalert="off"
email="[email protected]"
emailfrom=""
# Pushbullet Alerts | https://github.com/GameServerManagers/LinuxGSM/wiki/Pushbullet
pushbulletalert="off"
pushbullettoken="accesstoken"
channeltag=""
## Updating | https://github.com/GameServerManagers/LinuxGSM/wiki/Update
updateonstart="off"

8
Rust/rustserver

@ -14,7 +14,7 @@ if [ -f ".dev-debug" ]; then
set -x
fi
version="161030"
version="161113"
##########################
######## Settings ########
@ -59,9 +59,11 @@ fi
emailalert="off"
email="[email protected]"
emailfrom=""
# Pushbullet Alerts | https://github.com/GameServerManagers/LinuxGSM/wiki/Pushbullet
pushbulletalert="off"
pushbullettoken="accesstoken"
channeltag=""
## Updating | https://github.com/GameServerManagers/LinuxGSM/wiki/Update
updateonstart="off"
@ -116,7 +118,7 @@ filesdir="${rootdir}/serverfiles"
## Server Specific Directories
systemdir="${filesdir}"
executabledir="${filesdir}"
executable="./RustDedicated"
executable="LD_LIBRARY_PATH=$LD_LIBRARY_PATH:`dirname $0`/RustDedicated_Data/Plugins/x86_64 ./RustDedicated"
serveridentitydir="${systemdir}/server/${servicename}"
servercfg="server.cfg"
servercfgdefault="server.cfg"
@ -214,4 +216,4 @@ fi
core_dl.sh
core_functions.sh
getopt=$1
core_getopt.sh
core_getopt.sh

4
SeriousSam3BFE/ss3sserver

@ -14,7 +14,7 @@ if [ -f ".dev-debug" ]; then
set -x
fi
version="161030"
version="161113"
##########################
######## Settings ########
@ -39,9 +39,11 @@ parms="+ip ${ip} +logfile ${gamelog} +exec ${servercfgfullpath}"
emailalert="off"
email="[email protected]"
emailfrom=""
# Pushbullet Alerts | https://github.com/GameServerManagers/LinuxGSM/wiki/Pushbullet
pushbulletalert="off"
pushbullettoken="accesstoken"
channeltag=""
## Updating | https://github.com/GameServerManagers/LinuxGSM/wiki/Update
updateonstart="off"

4
Starbound/sbserver

@ -14,7 +14,7 @@ if [ -f ".dev-debug" ]; then
set -x
fi
version="161030"
version="161113"
##########################
######## Settings ########
@ -43,9 +43,11 @@ parms=""
emailalert="off"
email="[email protected]"
emailfrom=""
# Pushbullet Alerts | https://github.com/GameServerManagers/LinuxGSM/wiki/Pushbullet
pushbulletalert="off"
pushbullettoken="accesstoken"
channeltag=""
## Updating | https://github.com/GameServerManagers/LinuxGSM/wiki/Update
updateonstart="off"

4
SvenCoop/svenserver

@ -14,7 +14,7 @@ if [ -f ".dev-debug" ]; then
set -x
fi
version="161030"
version="161113"
##########################
######## Settings ########
@ -43,9 +43,11 @@ parms="-game svencoop -strictportbind +ip ${ip} -port ${port} +clientport ${clie
emailalert="off"
email="[email protected]"
emailfrom=""
# Pushbullet Alerts | https://github.com/GameServerManagers/LinuxGSM/wiki/Pushbullet
pushbulletalert="off"
pushbullettoken="accesstoken"
channeltag=""
## Updating | https://github.com/GameServerManagers/LinuxGSM/wiki/Update
updateonstart="off"

4
TeamFortress2/tf2server

@ -14,7 +14,7 @@ if [ -f ".dev-debug" ]; then
set -x
fi
version="161030"
version="161113"
##########################
######## Settings ########
@ -47,9 +47,11 @@ parms="-game tf -strictportbind -ip ${ip} -port ${port} +clientport ${clientport
emailalert="off"
email="[email protected]"
emailfrom=""
# Pushbullet Alerts | https://github.com/GameServerManagers/LinuxGSM/wiki/Pushbullet
pushbulletalert="off"
pushbullettoken="accesstoken"
channeltag=""
## Updating | https://github.com/GameServerManagers/LinuxGSM/wiki/Update
updateonstart="off"

4
TeamFortressClassic/tfcserver

@ -14,7 +14,7 @@ if [ -f ".dev-debug" ]; then
set -x
fi
version="161030"
version="161113"
##########################
######## Settings ########
@ -43,9 +43,11 @@ parms="-game tfc -strictportbind _ip ${ip} -port ${port} +clientport ${clientpor
emailalert="off"
email="[email protected]"
emailfrom=""
# Pushbullet Alerts | https://github.com/GameServerManagers/LinuxGSM/wiki/Pushbullet
pushbulletalert="off"
pushbullettoken="accesstoken"
channeltag=""
## Updating | https://github.com/GameServerManagers/LinuxGSM/wiki/Update
updateonstart="off"

4
TeamSpeak3/ts3server

@ -14,7 +14,7 @@ if [ -f ".dev-debug" ]; then
set -x
fi
version="161030"
version="161113"
##########################
######## Settings ########
@ -31,9 +31,11 @@ version="161030"
emailalert="off"
email="[email protected]"
emailfrom=""
# Pushbullet Alerts | https://github.com/GameServerManagers/LinuxGSM/wiki/Pushbullet
pushbulletalert="off"
pushbullettoken="accesstoken"
channeltag=""
## Updating | https://github.com/GameServerManagers/LinuxGSM/wiki/Update
updateonstart="off"

4
Teeworlds/twserver

@ -14,7 +14,7 @@ if [ -f ".dev-debug" ]; then
set -x
fi
version="161030"
version="161113"
##########################
######## Settings ########
@ -43,9 +43,11 @@ parms="-f ${servercfgfullpath}"
emailalert="off"
email="[email protected]"
emailfrom=""
# Pushbullet Alerts | https://github.com/GameServerManagers/LinuxGSM/wiki/Pushbullet
pushbulletalert="off"
pushbullettoken="accesstoken"
channeltag=""
## Updating | https://github.com/GameServerManagers/LinuxGSM/wiki/Update
updateonstart="off"

4
Terraria/terrariaserver

@ -14,7 +14,7 @@ if [ -f ".dev-debug" ]; then
set -x
fi
version="161030"
version="161113"
##########################
######## Settings ########
@ -43,9 +43,11 @@ parms="-config ${servercfgfullpath}"
emailalert="off"
email="[email protected]"
emailfrom=""
# Pushbullet Alerts | https://github.com/GameServerManagers/LinuxGSM/wiki/Pushbullet
pushbulletalert="off"
pushbullettoken="accesstoken"
channeltag=""
## Updating | https://github.com/GameServerManagers/LinuxGSM/wiki/Update
updateonstart="off"

4
UnrealTournament/utserver

@ -15,7 +15,7 @@ if [ -f ".dev-debug" ]; then
set -x
fi
version="161030"
version="161113"
##########################
######## Settings ########
@ -45,9 +45,11 @@ parms="UnrealTournament ${defaultmap}?Game=${gametype}?TimeLimit=${timelimit} -p
emailalert="off"
email="[email protected]"
emailfrom=""
# Pushbullet Alerts | https://github.com/GameServerManagers/LinuxGSM/wiki/Pushbullet
pushbulletalert="off"
pushbullettoken="accesstoken"
channeltag=""
## Backup | https://github.com/GameServerManagers/LinuxGSM/wiki/Backup
maxbackups="4"

4
UnrealTournament2004/ut2k4server

@ -14,7 +14,7 @@ if [ -f ".dev-debug" ]; then
set -x
fi
version="161030"
version="161113"
##########################
######## Settings ########
@ -40,9 +40,11 @@ parms="server ${defaultmap}?game=XGame.xDeathMatch -nohomedir ini=${servercfg} l
emailalert="off"
email="[email protected]"
emailfrom=""
# Pushbullet Alerts | https://github.com/GameServerManagers/LinuxGSM/wiki/Pushbullet
pushbulletalert="off"
pushbullettoken="accesstoken"
channeltag=""
## Backup | https://github.com/GameServerManagers/LinuxGSM/wiki/Backup
maxbackups="4"

4
UnrealTournament3/ut3server

@ -14,7 +14,7 @@ if [ -f ".dev-debug" ]; then
set -x
fi
version="161030"
version="161113"
##########################
######## Settings ########
@ -51,9 +51,11 @@ parms="server ${defaultmap}?Game=${game}?bIsDedicated=${isdedicated}?bIsLanMatch
emailalert="off"
email="[email protected]"
emailfrom=""
# Pushbullet Alerts | https://github.com/GameServerManagers/LinuxGSM/wiki/Pushbullet
pushbulletalert="off"
pushbullettoken="accesstoken"
channeltag=""
## Backup | https://github.com/GameServerManagers/LinuxGSM/wiki/Backup
maxbackups="4"

4
UnrealTournament99/ut99server

@ -14,7 +14,7 @@ if [ -f ".dev-debug" ]; then
set -x
fi
version="161030"
version="161113"
##########################
######## Settings ########
@ -40,9 +40,11 @@ parms="server ${defaultmap}.unr ini=${servercfgfullpath}"
emailalert="off"
email="[email protected]"
emailfrom=""
# Pushbullet Alerts | https://github.com/GameServerManagers/LinuxGSM/wiki/Pushbullet
pushbulletalert="off"
pushbullettoken="accesstoken"
channeltag=""
## Backup | https://github.com/GameServerManagers/LinuxGSM/wiki/Backup
maxbackups="4"

4
WolfensteinEnemyTerritory/wetserver

@ -14,7 +14,7 @@ if [ -f ".dev-debug" ]; then
set -x
fi
version="161030"
version="161113"
##########################
######## Settings ########
@ -39,9 +39,11 @@ fn_parms(){
emailalert="off"
email="[email protected]"
emailfrom=""
# Pushbullet Alerts | https://github.com/GameServerManagers/LinuxGSM/wiki/Pushbullet
pushbulletalert="off"
pushbullettoken="accesstoken"
channeltag=""
## Updating | https://github.com/GameServerManagers/LinuxGSM/wiki/Update
updateonstart="off"

2
lgsm/functions/check_ip.sh

@ -8,7 +8,7 @@
local commandname="CHECK"
local function_selfname="$(basename $(readlink -f "${BASH_SOURCE[0]}"))"
if [ "${gamename}" != "TeamSpeak 3" ] && [ "${gamename}" != "Mumble" ]; then
if [ "${gamename}" != "TeamSpeak 3" ]&&[ "${gamename}" != "Mumble" ]&&[ "${travistest}" != "1" ]; then
if [ ! -f "/bin/ip" ]; then
ipcommand="/sbin/ip"
else

22
lgsm/functions/command_backup.sh

@ -127,18 +127,20 @@ fn_backup_compression(){
fn_print_ok_nl "Completed: ${backupname}.tar.gz, total size $(du -sh "${backupdir}/${backupname}.tar.gz" | awk '{print $1}')"
fn_script_log_pass "Backup created: ${backupname}.tar.gz, total size $(du -sh "${backupdir}/${backupname}.tar.gz" | awk '{print $1}')"
fi
# Remove lock file
rm -f "${tmpdir}/.backup.lock"
}
# Clear old backups according to maxbackups and maxbackupdays variables
fn_backup_prune(){
# How many backups there are
info_distro.sh
# How many backups exceed maxbackups
backupquotadiff=$((backupcount-maxbackups))
# How many backups exceed maxbackupdays
backupsoudatedcount=$(find "${backupdir}"/ -type f -name "*.tar.gz" -mtime +"${maxbackupdays}"|wc -l)
# If backup variables are set
if [ -n "${maxbackupdays}" ]&&[ -n "${maxbackups}" ]; then
# Clear if backup variables are set
if [ -n "${maxbackups}" ]&&[ -n "${maxbackupdays}" ]; then
# How many backups there are
info_distro.sh
# How many backups exceed maxbackups
backupquotadiff=$((backupcount-maxbackups))
# How many backups exceed maxbackupdays
backupsoudatedcount=$(find "${backupdir}"/ -type f -name "*.tar.gz" -mtime +"${maxbackupdays}"|wc -l)
# If anything can be cleared
if [ "${backupquotadiff}" -gt "0" ]||[ "${backupsoudatedcount}" -gt "0" ]; then
fn_print_dots "Pruning"
@ -195,8 +197,4 @@ fn_backup_dir
fn_backup_compression
fn_backup_prune
fn_backup_start_server
# Remove lock file
rm -f "${tmpdir}/.backup.lock"
core_exit.sh

2
lgsm/functions/command_start.sh

@ -37,7 +37,7 @@ fn_start_teamspeak3(){
date > "${rootdir}/${lockselfname}"
cd "${executabledir}"
if [ "${ts3serverpass}" == "1" ];then
./ts3server_startscript.sh start serveradmin_password="${newpassword}" inifile="${servercfgfullpath}"
./ts3server_startscript.sh start serveradmin_password="${newpassword}" inifile="${servercfgfullpath}" > /dev/null 2>&1
else
./ts3server_startscript.sh start inifile="${servercfgfullpath}" > /dev/null 2>&1
fi

26
lgsm/functions/command_ts3_server_pass.sh

@ -29,22 +29,17 @@ fn_serveradmin_password_prompt(){
done
fn_script_log_info "Initiating ${gamename} ServerAdmin password change"
read -p "Enter new password : " newpassword
}
}
fn_serveradmin_password_set(){
fn_print_info_nl "Applying new password"
fn_script_log_info "Applying new password"
fn_serveradmin_password_set(){
fn_print_info_nl "Starting server with new password..."
fn_script_log_info "Starting server with new password"
sleep 1
# Stop any running server
command_stop.sh
# Start server in "new password mode"
ts3serverpass="1"
fn_print_info_nl "Starting server with new password"
exitbypass="1"
command_start.sh
# Stop server in "new password mode"
command_stop.sh
ts3serverpass="0"
fn_print_ok_nl "Password applied"
fn_script_log_pass "New ServerAdmin password applied"
sleep 1
@ -55,9 +50,16 @@ check.sh
fn_serveradmin_password_prompt
check_status.sh
if [ "${status}" != "0" ]; then
# Stop any running server
exitbypass="1"
command_stop.sh
fn_serveradmin_password_set
command_start.sh
ts3serverpass="0"
fn_print_info_nl "Restarting server normally"
fn_script_log_info "Restarting server normally"
command_restart.sh
else
fn_serveradmin_password_set
command_stop.sh
fi
core_exit.sh
core_exit.sh

10
lgsm/functions/core_functions.sh

@ -544,16 +544,6 @@ functionfile="${FUNCNAME}"
fn_fetch_function
}
fix_cod2.sh(){
functionfile="${FUNCNAME}"
fn_fetch_function
}
fix_coduo.sh(){
functionfile="${FUNCNAME}"
fn_fetch_function
}
# Calls the global Ctrl-C trap
core_trap.sh

5
lgsm/functions/install_config.sh

@ -298,6 +298,7 @@ elif [ "${gamename}" == "Pirates, Vikings, and Knights II" ]; then
fn_set_config_vars
elif [ "${gamename}" == "Project Zomboid" ]; then
gamedirname="ProjectZomboid"
fn_check_cfgdir
array_configs+=( server.ini )
fn_fetch_default_config
fn_default_config_remote
@ -348,7 +349,7 @@ elif [ "${gamename}" == "Serious Sam 3: BFE" ]; then
fn_set_config_vars
elif [ "${gamename}" == "Starbound" ]; then
gamedirname="Starbound"
array_configs+=( starbound.config )
array_configs+=( starbound_server.config )
fn_fetch_default_config
fn_default_config_remote
fn_set_config_vars
@ -417,4 +418,4 @@ elif [ "${gamename}" == "Wolfenstein: Enemy Territory" ]; then
fn_fetch_default_config
fn_default_config_remote
fn_set_config_vars
fi
fi

114
tests/tests_jc2server.sh

@ -1,60 +1,91 @@
#!/bin/bash
# TravisCI Tests: Just Cause 2
# Server Management Script
# Just Cause 2
# Project: Game Server Managers - LinuxGSM
# Author: Daniel Gibbs
# License: MIT License, Copyright (c) 2016 Daniel Gibbs
# Purpose: TravisCI Test: Just Cause 2 | Server Management Script
# Contributors: https://github.com/GameServerManagers/LinuxGSM/graphs/contributors
# Documentation: https://github.com/GameServerManagers/LinuxGSM/wiki
# Website: https://gameservermanagers.com
version="101716"
travistest=1
# Debugging
if [ -f ".dev-debug" ]; then
exec 5>dev-debug.log
BASH_XTRACEFD="5"
set -x
fi
#### Variables ####
version="161113"
# Notification Alerts
# (on|off)
##########################
######## Settings ########
##########################
#### Server Settings ####
# No settings available for Just Cause 2
# Email
## Server Start Command | https://github.com/GameServerManagers/LinuxGSM/wiki/Start-Parameters#additional-parameters
# Edit with care
fn_parms(){
parms=""
}
#### LinuxGSM Settings ####
## Notification Alerts
# (on|off)
# Email Alerts | https://github.com/GameServerManagers/LinuxGSM/wiki/Email
emailalert="off"
email="[email protected]"
#emailfrom="[email protected]"
emailfrom=""
# Pushbullet
# https://www.pushbullet.com/#settings
# Pushbullet Alerts | https://github.com/GameServerManagers/LinuxGSM/wiki/Pushbullet
pushbulletalert="off"
pushbullettoken="accesstoken"
# Steam login
steamuser="anonymous"
steampass=""
# Start Variables
## Updating | https://github.com/GameServerManagers/LinuxGSM/wiki/Update
updateonstart="off"
fn_parms(){
parms=""
}
## Backup | https://github.com/GameServerManagers/LinuxGSM/wiki/Backup
maxbackups="4"
maxbackupdays="30"
stoponbackup="on"
#### Advanced Variables ####
## Logging | https://github.com/GameServerManagers/LinuxGSM/wiki/Logging
consolelogging="on"
logdays="7"
#### LinuxGSM Advanced Settings ####
## SteamCMD Settings
# Server appid
appid="261140"
# Steam App Branch Select
# Allows to opt into the various Steam app branches. Default branch is "".
# Example: "-beta latest_experimental"
branch=""
# Github Branch Select
## Github Branch Select
# Allows for the use of different function files
# from a different repo and/or branch.
githubuser="GameServerManagers"
githubrepo="LinuxGSM"
githubbranch="$TRAVIS_BRANCH"
# Steam
appid="261140"
# Server Details
servicename="jc2-server"
## LinuxGSM Server Details
# Do not edit
gamename="Just Cause 2"
engine="avalanche"
# Directories
## Service Name | https://github.com/GameServerManagers/LinuxGSM/wiki/Multiple-Servers
servicename="jc2-server"
#### Directories ####
# Edit with care
## Work Directories
rootdir="$(dirname $(readlink -f "${BASH_SOURCE[0]}"))"
selfname="$(basename $(readlink -f "${BASH_SOURCE[0]}"))"
lockselfname=".${servicename}.lock"
@ -63,6 +94,8 @@ functionsdir="${lgsmdir}/functions"
libdir="${lgsmdir}/lib"
tmpdir="${lgsmdir}/tmp"
filesdir="${rootdir}/serverfiles"
## Server Specific Directories
systemdir="${filesdir}"
executabledir="${filesdir}"
executable="./Jcmp-Server"
@ -70,24 +103,26 @@ servercfg="config.lua"
servercfgdefault="config.lua"
servercfgdir="${filesdir}"
servercfgfullpath="${servercfgdir}/${servercfg}"
## Backup Directory
backupdir="${rootdir}/backups"
# Logging
logdays="7"
## Logging Directories
#gamelogdir="" # No server logs available
scriptlogdir="${rootdir}/log/script"
consolelogdir="${rootdir}/log/console"
consolelogging="on"
scriptlog="${scriptlogdir}/${servicename}-script.log"
consolelog="${consolelogdir}/${servicename}-console.log"
emaillog="${scriptlogdir}/${servicename}-email.log"
scriptlogdate="${scriptlogdir}/${servicename}-script-$(date '+%d-%m-%Y-%H-%M-%S').log"
consolelogdate="${consolelogdir}/${servicename}-console-$(date '+%d-%m-%Y-%H-%M-%S').log"
## Logs Naming
scriptlogdate="${scriptlogdir}/${servicename}-script-$(date '+%Y-%m-%d-%H:%M:%S').log"
consolelogdate="${consolelogdir}/${servicename}-console-$(date '+%Y-%m-%d-%H:%M:%S').log"
##### Script #####
# Do not edit
########################
######## Script ########
###### Do not edit #####
########################
# Fetches core_dl for file downloads
fn_fetch_core_dl(){
@ -144,6 +179,17 @@ functionfile="${FUNCNAME}"
fn_fetch_core_dl
}
# Prevent from running this script as root.
if [ "$(whoami)" = "root" ]; then
if [ ! -f "${functionsdir}/core_functions.sh" ]||[ ! -f "${functionsdir}/check_root.sh" ]||[ ! -f "${functionsdir}/core_messages.sh" ]||[ ! -f "${functionsdir}/core_exit.sh" ]; then
echo "[ FAIL ] Do NOT run this script as root!"
exit 1
else
core_functions.sh
check_root.sh
fi
fi
core_dl.sh
core_functions.sh

Loading…
Cancel
Save