Browse Source

Merge branch 'develop' into feature/3074-launch-parameters

pull/3151/head
Daniel Gibbs 5 years ago
committed by GitHub
parent
commit
1099a1b75c
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 1
      lgsm/config-default/config-lgsm/acserver/_default.cfg
  2. 1
      lgsm/config-default/config-lgsm/ahl2server/_default.cfg
  3. 1
      lgsm/config-default/config-lgsm/ahlserver/_default.cfg
  4. 1
      lgsm/config-default/config-lgsm/arkserver/_default.cfg
  5. 1
      lgsm/config-default/config-lgsm/arma3server/_default.cfg
  6. 1
      lgsm/config-default/config-lgsm/avserver/_default.cfg
  7. 1
      lgsm/config-default/config-lgsm/bb2server/_default.cfg
  8. 1
      lgsm/config-default/config-lgsm/bbserver/_default.cfg
  9. 1
      lgsm/config-default/config-lgsm/bdserver/_default.cfg
  10. 1
      lgsm/config-default/config-lgsm/bmdmserver/_default.cfg
  11. 1
      lgsm/config-default/config-lgsm/boserver/_default.cfg
  12. 1
      lgsm/config-default/config-lgsm/bsserver/_default.cfg
  13. 1
      lgsm/config-default/config-lgsm/bt1944server/_default.cfg
  14. 1
      lgsm/config-default/config-lgsm/btserver/_default.cfg
  15. 1
      lgsm/config-default/config-lgsm/ccserver/_default.cfg
  16. 1
      lgsm/config-default/config-lgsm/cmwserver/_default.cfg
  17. 1
      lgsm/config-default/config-lgsm/colserver/_default.cfg
  18. 1
      lgsm/config-default/config-lgsm/csczserver/_default.cfg
  19. 3
      lgsm/config-default/config-lgsm/csgoserver/_default.cfg
  20. 1
      lgsm/config-default/config-lgsm/csserver/_default.cfg
  21. 1
      lgsm/config-default/config-lgsm/cssserver/_default.cfg
  22. 1
      lgsm/config-default/config-lgsm/dabserver/_default.cfg
  23. 1
      lgsm/config-default/config-lgsm/dmcserver/_default.cfg
  24. 1
      lgsm/config-default/config-lgsm/dodserver/_default.cfg
  25. 1
      lgsm/config-default/config-lgsm/dodsserver/_default.cfg
  26. 1
      lgsm/config-default/config-lgsm/doiserver/_default.cfg
  27. 1
      lgsm/config-default/config-lgsm/dstserver/_default.cfg
  28. 1
      lgsm/config-default/config-lgsm/dysserver/_default.cfg
  29. 1
      lgsm/config-default/config-lgsm/ecoserver/_default.cfg
  30. 1
      lgsm/config-default/config-lgsm/emserver/_default.cfg
  31. 1
      lgsm/config-default/config-lgsm/fofserver/_default.cfg
  32. 1
      lgsm/config-default/config-lgsm/gmodserver/_default.cfg
  33. 1
      lgsm/config-default/config-lgsm/hl2dmserver/_default.cfg
  34. 1
      lgsm/config-default/config-lgsm/hldmserver/_default.cfg
  35. 1
      lgsm/config-default/config-lgsm/hldmsserver/_default.cfg
  36. 1
      lgsm/config-default/config-lgsm/hwserver/_default.cfg
  37. 1
      lgsm/config-default/config-lgsm/insserver/_default.cfg
  38. 7
      lgsm/config-default/config-lgsm/inssserver/_default.cfg
  39. 1
      lgsm/config-default/config-lgsm/iosserver/_default.cfg
  40. 8
      lgsm/config-default/config-lgsm/jc2server/_default.cfg
  41. 1
      lgsm/config-default/config-lgsm/jc3server/_default.cfg
  42. 1
      lgsm/config-default/config-lgsm/jk2server/_default.cfg
  43. 1
      lgsm/config-default/config-lgsm/kf2server/_default.cfg
  44. 1
      lgsm/config-default/config-lgsm/kfserver/_default.cfg
  45. 1
      lgsm/config-default/config-lgsm/l4d2server/_default.cfg
  46. 1
      lgsm/config-default/config-lgsm/l4dserver/_default.cfg
  47. 1
      lgsm/config-default/config-lgsm/mhserver/_default.cfg
  48. 1
      lgsm/config-default/config-lgsm/momserver/_default.cfg
  49. 1
      lgsm/config-default/config-lgsm/ndserver/_default.cfg
  50. 1
      lgsm/config-default/config-lgsm/nmrihserver/_default.cfg
  51. 1
      lgsm/config-default/config-lgsm/ns2cserver/_default.cfg
  52. 1
      lgsm/config-default/config-lgsm/ns2server/_default.cfg
  53. 1
      lgsm/config-default/config-lgsm/nsserver/_default.cfg
  54. 1
      lgsm/config-default/config-lgsm/onsetserver/_default.cfg
  55. 1
      lgsm/config-default/config-lgsm/opforserver/_default.cfg
  56. 1
      lgsm/config-default/config-lgsm/pcserver/_default.cfg
  57. 1
      lgsm/config-default/config-lgsm/pstbsserver/_default.cfg
  58. 1
      lgsm/config-default/config-lgsm/pvkiiserver/_default.cfg
  59. 1
      lgsm/config-default/config-lgsm/pvrserver/_default.cfg
  60. 1
      lgsm/config-default/config-lgsm/pzserver/_default.cfg
  61. 1
      lgsm/config-default/config-lgsm/qlserver/_default.cfg
  62. 1
      lgsm/config-default/config-lgsm/ricochetserver/_default.cfg
  63. 1
      lgsm/config-default/config-lgsm/roserver/_default.cfg
  64. 1
      lgsm/config-default/config-lgsm/rustserver/_default.cfg
  65. 1
      lgsm/config-default/config-lgsm/rwserver/_default.cfg
  66. 1
      lgsm/config-default/config-lgsm/sbotsserver/_default.cfg
  67. 1
      lgsm/config-default/config-lgsm/sbserver/_default.cfg
  68. 1
      lgsm/config-default/config-lgsm/scpslserver/_default.cfg
  69. 1
      lgsm/config-default/config-lgsm/scpslsmserver/_default.cfg
  70. 1
      lgsm/config-default/config-lgsm/sdtdserver/_default.cfg
  71. 1
      lgsm/config-default/config-lgsm/sfcserver/_default.cfg
  72. 1
      lgsm/config-default/config-lgsm/solserver/_default.cfg
  73. 1
      lgsm/config-default/config-lgsm/squadserver/_default.cfg
  74. 1
      lgsm/config-default/config-lgsm/stserver/_default.cfg
  75. 1
      lgsm/config-default/config-lgsm/svenserver/_default.cfg
  76. 1
      lgsm/config-default/config-lgsm/terrariaserver/_default.cfg
  77. 1
      lgsm/config-default/config-lgsm/tf2server/_default.cfg
  78. 1
      lgsm/config-default/config-lgsm/tfcserver/_default.cfg
  79. 1
      lgsm/config-default/config-lgsm/tsserver/_default.cfg
  80. 1
      lgsm/config-default/config-lgsm/tuserver/_default.cfg
  81. 1
      lgsm/config-default/config-lgsm/twserver/_default.cfg
  82. 1
      lgsm/config-default/config-lgsm/untserver/_default.cfg
  83. 1
      lgsm/config-default/config-lgsm/vsserver/_default.cfg
  84. 1
      lgsm/config-default/config-lgsm/wfserver/_default.cfg
  85. 1
      lgsm/config-default/config-lgsm/wurmserver/_default.cfg
  86. 1
      lgsm/config-default/config-lgsm/zmrserver/_default.cfg
  87. 1
      lgsm/config-default/config-lgsm/zpsserver/_default.cfg
  88. 11
      lgsm/functions/alert.sh
  89. 23
      lgsm/functions/alert_sendgrid.sh
  90. 103
      lgsm/functions/alert_slack.sh
  91. 8
      lgsm/functions/check_deps.sh
  92. 5
      lgsm/functions/command_dev_detect_deps.sh
  93. 42
      lgsm/functions/command_wipe.sh
  94. 42
      lgsm/functions/core_dl.sh
  95. 10
      lgsm/functions/core_functions.sh
  96. 113
      lgsm/functions/core_github.sh
  97. 12
      lgsm/functions/core_steamcmd.sh
  98. 42
      lgsm/functions/info_config.sh
  99. 7
      lgsm/functions/info_parms.sh
  100. 14
      lgsm/functions/update_factorio.sh

1
lgsm/config-default/config-lgsm/acserver/_default.cfg

@ -110,6 +110,7 @@ sleeptime="0.5"
## SteamCMD Settings | https://docs.linuxgsm.com/steamcmd ## SteamCMD Settings | https://docs.linuxgsm.com/steamcmd
# Server appid # Server appid
appid="302550" appid="302550"
steamcmdforcewindows="yes"
# SteamCMD Branch | https://docs.linuxgsm.com/steamcmd/branch # SteamCMD Branch | https://docs.linuxgsm.com/steamcmd/branch
branch="" branch=""
betapassword="" betapassword=""

1
lgsm/config-default/config-lgsm/ahl2server/_default.cfg

@ -139,6 +139,7 @@ querytype="protocol-valve"
## SteamCMD Settings | https://docs.linuxgsm.com/steamcmd ## SteamCMD Settings | https://docs.linuxgsm.com/steamcmd
# Server appid # Server appid
appid="985050" appid="985050"
steamcmdforcewindows="no"
# SteamCMD Branch | https://docs.linuxgsm.com/steamcmd/branch # SteamCMD Branch | https://docs.linuxgsm.com/steamcmd/branch
branch="" branch=""
betapassword="" betapassword=""

1
lgsm/config-default/config-lgsm/ahlserver/_default.cfg

@ -111,6 +111,7 @@ sleeptime="0.5"
## SteamCMD Settings | https://docs.linuxgsm.com/steamcmd ## SteamCMD Settings | https://docs.linuxgsm.com/steamcmd
# Server appid # Server appid
appid="90" appid="90"
steamcmdforcewindows="no"
appidmod="cstrike" appidmod="cstrike"
# SteamCMD Branch | https://docs.linuxgsm.com/steamcmd/branch # SteamCMD Branch | https://docs.linuxgsm.com/steamcmd/branch
branch="" branch=""

1
lgsm/config-default/config-lgsm/arkserver/_default.cfg

@ -114,6 +114,7 @@ sleeptime="0.5"
## SteamCMD Settings | https://docs.linuxgsm.com/steamcmd ## SteamCMD Settings | https://docs.linuxgsm.com/steamcmd
# Server appid # Server appid
appid="376030" appid="376030"
steamcmdforcewindows="no"
# SteamCMD Branch | https://docs.linuxgsm.com/steamcmd/branch # SteamCMD Branch | https://docs.linuxgsm.com/steamcmd/branch
branch="" branch=""
betapassword="" betapassword=""

1
lgsm/config-default/config-lgsm/arma3server/_default.cfg

@ -127,6 +127,7 @@ sleeptime="0.5"
## SteamCMD Settings | https://docs.linuxgsm.com/steamcmd ## SteamCMD Settings | https://docs.linuxgsm.com/steamcmd
# Server appid # Server appid
appid="233780" appid="233780"
steamcmdforcewindows="no"
# SteamCMD Branch | https://docs.linuxgsm.com/steamcmd/branch # SteamCMD Branch | https://docs.linuxgsm.com/steamcmd/branch
branch="" branch=""
betapassword="" betapassword=""

1
lgsm/config-default/config-lgsm/avserver/_default.cfg

@ -110,6 +110,7 @@ sleeptime="0.5"
## SteamCMD Settings | https://docs.linuxgsm.com/steamcmd ## SteamCMD Settings | https://docs.linuxgsm.com/steamcmd
# Server appid # Server appid
appid="565060" appid="565060"
steamcmdforcewindows="no"
# SteamCMD Branch | https://docs.linuxgsm.com/steamcmd/branch # SteamCMD Branch | https://docs.linuxgsm.com/steamcmd/branch
branch="" branch=""
betapassword="" betapassword=""

1
lgsm/config-default/config-lgsm/bb2server/_default.cfg

@ -117,6 +117,7 @@ sleeptime="0.5"
## SteamCMD Settings | https://docs.linuxgsm.com/steamcmd ## SteamCMD Settings | https://docs.linuxgsm.com/steamcmd
# Server appid # Server appid
appid="475370" appid="475370"
steamcmdforcewindows="no"
# SteamCMD Branch | https://docs.linuxgsm.com/steamcmd/branch # SteamCMD Branch | https://docs.linuxgsm.com/steamcmd/branch
branch="" branch=""
betapassword="" betapassword=""

1
lgsm/config-default/config-lgsm/bbserver/_default.cfg

@ -111,6 +111,7 @@ sleeptime="0.5"
## SteamCMD Settings | https://docs.linuxgsm.com/steamcmd ## SteamCMD Settings | https://docs.linuxgsm.com/steamcmd
# Server appid # Server appid
appid="90" appid="90"
steamcmdforcewindows="no"
appidmod="cstrike" appidmod="cstrike"
# SteamCMD Branch | https://docs.linuxgsm.com/steamcmd/branch # SteamCMD Branch | https://docs.linuxgsm.com/steamcmd/branch
branch="" branch=""

1
lgsm/config-default/config-lgsm/bdserver/_default.cfg

@ -111,6 +111,7 @@ sleeptime="0.5"
## SteamCMD Settings | https://docs.linuxgsm.com/steamcmd ## SteamCMD Settings | https://docs.linuxgsm.com/steamcmd
# Server appid # Server appid
appid="817300" appid="817300"
steamcmdforcewindows="no"
# SteamCMD Branch | https://docs.linuxgsm.com/steamcmd/branch # SteamCMD Branch | https://docs.linuxgsm.com/steamcmd/branch
branch="" branch=""
betapassword="" betapassword=""

1
lgsm/config-default/config-lgsm/bmdmserver/_default.cfg

@ -117,6 +117,7 @@ sleeptime="0.5"
## SteamCMD Settings | https://docs.linuxgsm.com/steamcmd ## SteamCMD Settings | https://docs.linuxgsm.com/steamcmd
# Server appid # Server appid
appid="346680" appid="346680"
steamcmdforcewindows="no"
# SteamCMD Branch | https://docs.linuxgsm.com/steamcmd/branch # SteamCMD Branch | https://docs.linuxgsm.com/steamcmd/branch
branch="" branch=""
betapassword="" betapassword=""

1
lgsm/config-default/config-lgsm/boserver/_default.cfg

@ -110,6 +110,7 @@ sleeptime="0.5"
## SteamCMD Settings | https://docs.linuxgsm.com/steamcmd ## SteamCMD Settings | https://docs.linuxgsm.com/steamcmd
# Server appid # Server appid
appid="416880" appid="416880"
steamcmdforcewindows="no"
# SteamCMD Branch | https://docs.linuxgsm.com/steamcmd/branch # SteamCMD Branch | https://docs.linuxgsm.com/steamcmd/branch
branch="" branch=""
betapassword="" betapassword=""

1
lgsm/config-default/config-lgsm/bsserver/_default.cfg

@ -121,6 +121,7 @@ sleeptime="0.5"
## SteamCMD Settings | https://docs.linuxgsm.com/steamcmd ## SteamCMD Settings | https://docs.linuxgsm.com/steamcmd
# Server appid # Server appid
appid="228780" appid="228780"
steamcmdforcewindows="no"
# SteamCMD Branch | https://docs.linuxgsm.com/steamcmd/branch # SteamCMD Branch | https://docs.linuxgsm.com/steamcmd/branch
branch="" branch=""
betapassword="" betapassword=""

1
lgsm/config-default/config-lgsm/bt1944server/_default.cfg

@ -109,6 +109,7 @@ sleeptime="0.5"
## SteamCMD Settings | https://docs.linuxgsm.com/steamcmd ## SteamCMD Settings | https://docs.linuxgsm.com/steamcmd
# Server appid # Server appid
appid="805140" appid="805140"
steamcmdforcewindows="no"
# SteamCMD Branch | https://docs.linuxgsm.com/steamcmd/branch # SteamCMD Branch | https://docs.linuxgsm.com/steamcmd/branch
branch="" branch=""
betapassword="" betapassword=""

1
lgsm/config-default/config-lgsm/btserver/_default.cfg

@ -104,6 +104,7 @@ sleeptime="0.5"
## SteamCMD Settings | https://docs.linuxgsm.com/steamcmd ## SteamCMD Settings | https://docs.linuxgsm.com/steamcmd
# Server appid # Server appid
appid="1026340" appid="1026340"
steamcmdforcewindows="no"
# SteamCMD Branch | https://docs.linuxgsm.com/steamcmd/branch # SteamCMD Branch | https://docs.linuxgsm.com/steamcmd/branch
branch="" branch=""
betapassword="" betapassword=""

1
lgsm/config-default/config-lgsm/ccserver/_default.cfg

@ -112,6 +112,7 @@ sleeptime="0.5"
## SteamCMD Settings | https://docs.linuxgsm.com/steamcmd ## SteamCMD Settings | https://docs.linuxgsm.com/steamcmd
# Server appid # Server appid
appid="383410" appid="383410"
steamcmdforcewindows="no"
# SteamCMD Branch | https://docs.linuxgsm.com/steamcmd/branch # SteamCMD Branch | https://docs.linuxgsm.com/steamcmd/branch
branch="" branch=""
betapassword="" betapassword=""

1
lgsm/config-default/config-lgsm/cmwserver/_default.cfg

@ -111,6 +111,7 @@ sleeptime="0.5"
## SteamCMD Settings | https://docs.linuxgsm.com/steamcmd ## SteamCMD Settings | https://docs.linuxgsm.com/steamcmd
# Server appid # Server appid
appid="220070" appid="220070"
steamcmdforcewindows="no"
# SteamCMD Branch | https://docs.linuxgsm.com/steamcmd/branch # SteamCMD Branch | https://docs.linuxgsm.com/steamcmd/branch
branch="" branch=""
betapassword="" betapassword=""

1
lgsm/config-default/config-lgsm/colserver/_default.cfg

@ -105,6 +105,7 @@ sleeptime="0.5"
## SteamCMD Settings | https://docs.linuxgsm.com/steamcmd ## SteamCMD Settings | https://docs.linuxgsm.com/steamcmd
# Server appid # Server appid
appid="748090" appid="748090"
steamcmdforcewindows="no"
# SteamCMD Branch | https://docs.linuxgsm.com/steamcmd/branch # SteamCMD Branch | https://docs.linuxgsm.com/steamcmd/branch
branch="" branch=""
betapassword="" betapassword=""

1
lgsm/config-default/config-lgsm/csczserver/_default.cfg

@ -111,6 +111,7 @@ sleeptime="0.5"
## SteamCMD Settings | https://docs.linuxgsm.com/steamcmd ## SteamCMD Settings | https://docs.linuxgsm.com/steamcmd
# Server appid # Server appid
appid="90" appid="90"
steamcmdforcewindows="no"
appidmod="czero" appidmod="czero"
# SteamCMD Branch | https://docs.linuxgsm.com/steamcmd/branch # SteamCMD Branch | https://docs.linuxgsm.com/steamcmd/branch
branch="" branch=""

3
lgsm/config-default/config-lgsm/csgoserver/_default.cfg

@ -137,6 +137,7 @@ sleeptime="0.5"
## SteamCMD Settings | https://docs.linuxgsm.com/steamcmd ## SteamCMD Settings | https://docs.linuxgsm.com/steamcmd
# Server appid # Server appid
appid="740" appid="740"
steamcmdforcewindows="no"
# SteamCMD Branch | https://docs.linuxgsm.com/steamcmd/branch # SteamCMD Branch | https://docs.linuxgsm.com/steamcmd/branch
branch="" branch=""
betapassword="" betapassword=""
@ -155,7 +156,7 @@ steammaster="true"
# 9: GoldSrc # 9: GoldSrc
# 10: Avorion # 10: Avorion
# 11: end # 11: end
stopmode="3" stopmode="9"
## Query mode ## Query mode
# 1: session only # 1: session only

1
lgsm/config-default/config-lgsm/csserver/_default.cfg

@ -111,6 +111,7 @@ sleeptime="0.5"
## SteamCMD Settings | https://docs.linuxgsm.com/steamcmd ## SteamCMD Settings | https://docs.linuxgsm.com/steamcmd
# Server appid # Server appid
appid="90" appid="90"
steamcmdforcewindows="no"
appidmod="cstrike" appidmod="cstrike"
# SteamCMD Branch | https://docs.linuxgsm.com/steamcmd/branch # SteamCMD Branch | https://docs.linuxgsm.com/steamcmd/branch
branch="" branch=""

1
lgsm/config-default/config-lgsm/cssserver/_default.cfg

@ -118,6 +118,7 @@ sleeptime="0.5"
## SteamCMD Settings | https://docs.linuxgsm.com/steamcmd ## SteamCMD Settings | https://docs.linuxgsm.com/steamcmd
# Server appid # Server appid
appid="232330" appid="232330"
steamcmdforcewindows="no"
# SteamCMD Branch | https://docs.linuxgsm.com/steamcmd/branch # SteamCMD Branch | https://docs.linuxgsm.com/steamcmd/branch
branch="" branch=""
betapassword="" betapassword=""

1
lgsm/config-default/config-lgsm/dabserver/_default.cfg

@ -112,6 +112,7 @@ sleeptime="0.5"
## SteamCMD Settings | https://docs.linuxgsm.com/steamcmd ## SteamCMD Settings | https://docs.linuxgsm.com/steamcmd
# Server appid # Server appid
appid="317800" appid="317800"
steamcmdforcewindows="no"
# SteamCMD Branch | https://docs.linuxgsm.com/steamcmd/branch # SteamCMD Branch | https://docs.linuxgsm.com/steamcmd/branch
branch="" branch=""
betapassword="" betapassword=""

1
lgsm/config-default/config-lgsm/dmcserver/_default.cfg

@ -111,6 +111,7 @@ sleeptime="0.5"
## SteamCMD Settings | https://docs.linuxgsm.com/steamcmd ## SteamCMD Settings | https://docs.linuxgsm.com/steamcmd
# Server appid # Server appid
appid="90" appid="90"
steamcmdforcewindows="no"
appidmod="dmc" appidmod="dmc"
# SteamCMD Branch | https://docs.linuxgsm.com/steamcmd/branch # SteamCMD Branch | https://docs.linuxgsm.com/steamcmd/branch
branch="" branch=""

1
lgsm/config-default/config-lgsm/dodserver/_default.cfg

@ -111,6 +111,7 @@ sleeptime="0.5"
## SteamCMD Settings | https://docs.linuxgsm.com/steamcmd ## SteamCMD Settings | https://docs.linuxgsm.com/steamcmd
# Server appid # Server appid
appid="90" appid="90"
steamcmdforcewindows="no"
appidmod="dod" appidmod="dod"
# SteamCMD Branch | https://docs.linuxgsm.com/steamcmd/branch # SteamCMD Branch | https://docs.linuxgsm.com/steamcmd/branch
branch="" branch=""

1
lgsm/config-default/config-lgsm/dodsserver/_default.cfg

@ -112,6 +112,7 @@ sleeptime="0.5"
## SteamCMD Settings | https://docs.linuxgsm.com/steamcmd ## SteamCMD Settings | https://docs.linuxgsm.com/steamcmd
# Server appid # Server appid
appid="232290" appid="232290"
steamcmdforcewindows="no"
# SteamCMD Branch | https://docs.linuxgsm.com/steamcmd/branch # SteamCMD Branch | https://docs.linuxgsm.com/steamcmd/branch
branch="" branch=""
betapassword="" betapassword=""

1
lgsm/config-default/config-lgsm/doiserver/_default.cfg

@ -113,6 +113,7 @@ sleeptime="0.5"
## SteamCMD Settings | https://docs.linuxgsm.com/steamcmd ## SteamCMD Settings | https://docs.linuxgsm.com/steamcmd
# Server appid # Server appid
appid="462310" appid="462310"
steamcmdforcewindows="no"
# SteamCMD Branch | https://docs.linuxgsm.com/steamcmd/branch # SteamCMD Branch | https://docs.linuxgsm.com/steamcmd/branch
branch="" branch=""
betapassword="" betapassword=""

1
lgsm/config-default/config-lgsm/dstserver/_default.cfg

@ -115,6 +115,7 @@ sleeptime="0.5"
## SteamCMD Settings | https://docs.linuxgsm.com/steamcmd ## SteamCMD Settings | https://docs.linuxgsm.com/steamcmd
# Server appid # Server appid
appid="343050" appid="343050"
steamcmdforcewindows="no"
# SteamCMD Branch | https://docs.linuxgsm.com/steamcmd/branch # SteamCMD Branch | https://docs.linuxgsm.com/steamcmd/branch
branch="" branch=""
betapassword="" betapassword=""

1
lgsm/config-default/config-lgsm/dysserver/_default.cfg

@ -117,6 +117,7 @@ sleeptime="0.5"
## SteamCMD Settings | https://docs.linuxgsm.com/steamcmd ## SteamCMD Settings | https://docs.linuxgsm.com/steamcmd
# Server appid # Server appid
appid="17585" appid="17585"
steamcmdforcewindows="no"
# SteamCMD Branch | https://docs.linuxgsm.com/steamcmd/branch # SteamCMD Branch | https://docs.linuxgsm.com/steamcmd/branch
branch="" branch=""
betapassword="" betapassword=""

1
lgsm/config-default/config-lgsm/ecoserver/_default.cfg

@ -104,6 +104,7 @@ sleeptime="0.5"
## SteamCMD Settings | https://docs.linuxgsm.com/steamcmd ## SteamCMD Settings | https://docs.linuxgsm.com/steamcmd
# Server appid # Server appid
appid="739590" appid="739590"
steamcmdforcewindows="no"
# SteamCMD Branch | https://docs.linuxgsm.com/steamcmd/branch # SteamCMD Branch | https://docs.linuxgsm.com/steamcmd/branch
branch="" branch=""
betapassword="" betapassword=""

1
lgsm/config-default/config-lgsm/emserver/_default.cfg

@ -117,6 +117,7 @@ sleeptime="0.5"
## SteamCMD Settings | https://docs.linuxgsm.com/steamcmd ## SteamCMD Settings | https://docs.linuxgsm.com/steamcmd
# Server appid # Server appid
appid="460040" appid="460040"
steamcmdforcewindows="no"
# SteamCMD Branch | https://docs.linuxgsm.com/steamcmd/branch # SteamCMD Branch | https://docs.linuxgsm.com/steamcmd/branch
branch="" branch=""
betapassword="" betapassword=""

1
lgsm/config-default/config-lgsm/fofserver/_default.cfg

@ -112,6 +112,7 @@ sleeptime="0.5"
## SteamCMD Settings | https://docs.linuxgsm.com/steamcmd ## SteamCMD Settings | https://docs.linuxgsm.com/steamcmd
# Server appid # Server appid
appid="295230" appid="295230"
steamcmdforcewindows="no"
# SteamCMD Branch | https://docs.linuxgsm.com/steamcmd/branch # SteamCMD Branch | https://docs.linuxgsm.com/steamcmd/branch
branch="" branch=""
betapassword="" betapassword=""

1
lgsm/config-default/config-lgsm/gmodserver/_default.cfg

@ -128,6 +128,7 @@ sleeptime="0.5"
## SteamCMD Settings | https://docs.linuxgsm.com/steamcmd ## SteamCMD Settings | https://docs.linuxgsm.com/steamcmd
# Server appid # Server appid
appid="4020" appid="4020"
steamcmdforcewindows="no"
# SteamCMD Branch | https://docs.linuxgsm.com/steamcmd/branch # SteamCMD Branch | https://docs.linuxgsm.com/steamcmd/branch
branch="" branch=""
betapassword="" betapassword=""

1
lgsm/config-default/config-lgsm/hl2dmserver/_default.cfg

@ -112,6 +112,7 @@ sleeptime="0.5"
## SteamCMD Settings | https://docs.linuxgsm.com/steamcmd ## SteamCMD Settings | https://docs.linuxgsm.com/steamcmd
# Server appid # Server appid
appid="232370" appid="232370"
steamcmdforcewindows="no"
# SteamCMD Branch | https://docs.linuxgsm.com/steamcmd/branch # SteamCMD Branch | https://docs.linuxgsm.com/steamcmd/branch
branch="" branch=""
betapassword="" betapassword=""

1
lgsm/config-default/config-lgsm/hldmserver/_default.cfg

@ -111,6 +111,7 @@ sleeptime="0.5"
## SteamCMD Settings | https://docs.linuxgsm.com/steamcmd ## SteamCMD Settings | https://docs.linuxgsm.com/steamcmd
# Server appid # Server appid
appid="90" appid="90"
steamcmdforcewindows="no"
# SteamCMD Branch | https://docs.linuxgsm.com/steamcmd/branch # SteamCMD Branch | https://docs.linuxgsm.com/steamcmd/branch
branch="" branch=""
betapassword="" betapassword=""

1
lgsm/config-default/config-lgsm/hldmsserver/_default.cfg

@ -112,6 +112,7 @@ sleeptime="0.5"
## SteamCMD Settings | https://docs.linuxgsm.com/steamcmd ## SteamCMD Settings | https://docs.linuxgsm.com/steamcmd
# Server appid # Server appid
appid="255470" appid="255470"
steamcmdforcewindows="no"
# SteamCMD Branch | https://docs.linuxgsm.com/steamcmd/branch # SteamCMD Branch | https://docs.linuxgsm.com/steamcmd/branch
branch="" branch=""
betapassword="" betapassword=""

1
lgsm/config-default/config-lgsm/hwserver/_default.cfg

@ -123,6 +123,7 @@ sleeptime="0.5"
## SteamCMD Settings | https://docs.linuxgsm.com/steamcmd ## SteamCMD Settings | https://docs.linuxgsm.com/steamcmd
# Server appid # Server appid
appid="405100" appid="405100"
steamcmdforcewindows="no"
# SteamCMD Branch | https://docs.linuxgsm.com/steamcmd/branch # SteamCMD Branch | https://docs.linuxgsm.com/steamcmd/branch
branch="" branch=""
betapassword="" betapassword=""

1
lgsm/config-default/config-lgsm/insserver/_default.cfg

@ -118,6 +118,7 @@ sleeptime="0.5"
## SteamCMD Settings | https://docs.linuxgsm.com/steamcmd ## SteamCMD Settings | https://docs.linuxgsm.com/steamcmd
# Server appid # Server appid
appid="237410" appid="237410"
steamcmdforcewindows="no"
# SteamCMD Branch | https://docs.linuxgsm.com/steamcmd/branch # SteamCMD Branch | https://docs.linuxgsm.com/steamcmd/branch
branch="" branch=""
betapassword="" betapassword=""

7
lgsm/config-default/config-lgsm/inssserver/_default.cfg

@ -19,11 +19,12 @@ defaultscenario="Scenario_Crossing_Push_Security"
maxplayers="28" maxplayers="28"
## Server Parameters | https://docs.linuxgsm.com/configuration/start-parameters#additional-parameters ## Server Parameters | https://docs.linuxgsm.com/configuration/start-parameters#additional-parameters
## Parameter Docs | https://sandstorm-support.newworldinteractive.com/hc/en-us/articles/360049211072-Server-Admin-Guide
# Allows serverpassword to work with parameters # Allows serverpassword to work with parameters
if [ "${serverpassword}" != "NOT SET" ]; then if [ "${serverpassword}" != "NOT SET" ]; then
startparameters="${defaultmap}?Scenario=${defaultscenario}?MaxPlayers=${maxplayers}?Port=${port}?QueryPort=${queryport}?password="${serverpassword}" -hostname="${servername}" -log" startparameters="${defaultmap}?Scenario=${defaultscenario}?MaxPlayers=${maxplayers}?password='${serverpassword}' -Port=${port} -QueryPort=${queryport} -hostname="${servername}" -log"
else else
startparameters="${defaultmap}?Scenario=${defaultscenario}?MaxPlayers=${maxplayers}?Port=${port}?QueryPort=${queryport} -hostname="${servername}" -log" startparameters="${defaultmap}?Scenario=${defaultscenario}?MaxPlayers=${maxplayers} -Port=${port} -QueryPort=${queryport} -hostname='${servername}' -log"
fi fi
#### LinuxGSM Settings #### #### LinuxGSM Settings ####
@ -119,6 +120,7 @@ sleeptime="0.5"
## SteamCMD Settings | https://docs.linuxgsm.com/steamcmd ## SteamCMD Settings | https://docs.linuxgsm.com/steamcmd
# Server appid # Server appid
appid="581330" appid="581330"
steamcmdforcewindows="no"
# SteamCMD Branch | https://docs.linuxgsm.com/steamcmd/branch # SteamCMD Branch | https://docs.linuxgsm.com/steamcmd/branch
branch="" branch=""
betapassword="" betapassword=""
@ -168,7 +170,6 @@ executable="./InsurgencyServer-Linux-Shipping"
servercfgdir="${systemdir}/Saved/Config/LinuxServer" servercfgdir="${systemdir}/Saved/Config/LinuxServer"
servercfg="Game.ini" servercfg="Game.ini"
servercfgdefault="Game.ini" servercfgdefault="Game.ini"
servercfgfullpath="${servercfgdir}/${servercfg}"
## Backup Directory ## Backup Directory
backupdir="${lgsmdir}/backup" backupdir="${lgsmdir}/backup"

1
lgsm/config-default/config-lgsm/iosserver/_default.cfg

@ -112,6 +112,7 @@ sleeptime="0.5"
## SteamCMD Settings | https://docs.linuxgsm.com/steamcmd ## SteamCMD Settings | https://docs.linuxgsm.com/steamcmd
# Server appid # Server appid
appid="673990" appid="673990"
steamcmdforcewindows="no"
# SteamCMD Branch | https://docs.linuxgsm.com/steamcmd/branch # SteamCMD Branch | https://docs.linuxgsm.com/steamcmd/branch
branch="" branch=""
betapassword="" betapassword=""

8
lgsm/config-default/config-lgsm/jc2server/_default.cfg

@ -65,6 +65,13 @@ rocketchatalert="off"
rocketchatwebhook="webhook" rocketchatwebhook="webhook"
rocketchattoken="" rocketchattoken=""
# Sendgrid Email Alerts | https://docs.linuxgsm.com/alerts/sendgrid
sendgridalert="off"
sendgridtoken="accesstoken"
sendgriddomain="example.com"
sendgridemailfrom="[email protected]"
sendgridemail="[email protected]"
# Slack Alerts | https://docs.linuxgsm.com/alerts/slack # Slack Alerts | https://docs.linuxgsm.com/alerts/slack
slackalert="off" slackalert="off"
slackwebhook="webhook" slackwebhook="webhook"
@ -104,6 +111,7 @@ sleeptime="0.5"
## SteamCMD Settings | https://docs.linuxgsm.com/steamcmd ## SteamCMD Settings | https://docs.linuxgsm.com/steamcmd
# Server appid # Server appid
appid="261140" appid="261140"
steamcmdforcewindows="no"
# SteamCMD Branch | https://docs.linuxgsm.com/steamcmd/branch # SteamCMD Branch | https://docs.linuxgsm.com/steamcmd/branch
branch="" branch=""
betapassword="" betapassword=""

1
lgsm/config-default/config-lgsm/jc3server/_default.cfg

@ -104,6 +104,7 @@ sleeptime="0.5"
## SteamCMD Settings | https://docs.linuxgsm.com/steamcmd ## SteamCMD Settings | https://docs.linuxgsm.com/steamcmd
# Server appid # Server appid
appid="619960" appid="619960"
steamcmdforcewindows="no"
# SteamCMD Branch | https://docs.linuxgsm.com/steamcmd/branch # SteamCMD Branch | https://docs.linuxgsm.com/steamcmd/branch
branch="" branch=""
betapassword="" betapassword=""

1
lgsm/config-default/config-lgsm/jk2server/_default.cfg

@ -133,6 +133,7 @@ consoleinteract="yes"
## SteamCMD Settings ## SteamCMD Settings
# Server appid # Server appid
appid="6030" appid="6030"
steamcmdforcewindows="yes"
# SteamCMD Branch | https://docs.linuxgsm.com/steamcmd/branch # SteamCMD Branch | https://docs.linuxgsm.com/steamcmd/branch
branch="" branch=""
# Master Server | https://docs.linuxgsm.com/steamcmd/steam-master-server # Master Server | https://docs.linuxgsm.com/steamcmd/steam-master-server

1
lgsm/config-default/config-lgsm/kf2server/_default.cfg

@ -110,6 +110,7 @@ sleeptime="0.5"
## SteamCMD Settings | https://docs.linuxgsm.com/steamcmd ## SteamCMD Settings | https://docs.linuxgsm.com/steamcmd
# Server appid # Server appid
appid="232130" appid="232130"
steamcmdforcewindows="no"
# SteamCMD Branch | https://docs.linuxgsm.com/steamcmd/branch # SteamCMD Branch | https://docs.linuxgsm.com/steamcmd/branch
branch="" branch=""
betapassword="" betapassword=""

1
lgsm/config-default/config-lgsm/kfserver/_default.cfg

@ -116,6 +116,7 @@ sleeptime="0.5"
## SteamCMD Settings | https://docs.linuxgsm.com/steamcmd ## SteamCMD Settings | https://docs.linuxgsm.com/steamcmd
# Server appid # Server appid
appid="215360" appid="215360"
steamcmdforcewindows="no"
# SteamCMD Branch | https://docs.linuxgsm.com/steamcmd/branch # SteamCMD Branch | https://docs.linuxgsm.com/steamcmd/branch
branch="" branch=""
betapassword="" betapassword=""

1
lgsm/config-default/config-lgsm/l4d2server/_default.cfg

@ -111,6 +111,7 @@ sleeptime="0.5"
## SteamCMD Settings | https://docs.linuxgsm.com/steamcmd ## SteamCMD Settings | https://docs.linuxgsm.com/steamcmd
# Server appid # Server appid
appid="222860" appid="222860"
steamcmdforcewindows="no"
# SteamCMD Branch | https://docs.linuxgsm.com/steamcmd/branch # SteamCMD Branch | https://docs.linuxgsm.com/steamcmd/branch
branch="" branch=""
betapassword="" betapassword=""

1
lgsm/config-default/config-lgsm/l4dserver/_default.cfg

@ -111,6 +111,7 @@ sleeptime="0.5"
## SteamCMD Settings | https://docs.linuxgsm.com/steamcmd ## SteamCMD Settings | https://docs.linuxgsm.com/steamcmd
# Server appid # Server appid
appid="222840" appid="222840"
steamcmdforcewindows="no"
# SteamCMD Branch | https://docs.linuxgsm.com/steamcmd/branch # SteamCMD Branch | https://docs.linuxgsm.com/steamcmd/branch
branch="" branch=""
betapassword="" betapassword=""

1
lgsm/config-default/config-lgsm/mhserver/_default.cfg

@ -112,6 +112,7 @@ sleeptime="0.5"
## SteamCMD Settings | https://docs.linuxgsm.com/steamcmd ## SteamCMD Settings | https://docs.linuxgsm.com/steamcmd
# Server appid # Server appid
appid="629800" appid="629800"
steamcmdforcewindows="no"
# SteamCMD Branch | https://docs.linuxgsm.com/steamcmd/branch # SteamCMD Branch | https://docs.linuxgsm.com/steamcmd/branch
branch="" branch=""
betapassword="" betapassword=""

1
lgsm/config-default/config-lgsm/momserver/_default.cfg

@ -110,6 +110,7 @@ sleeptime="0.5"
## SteamCMD Settings | https://docs.linuxgsm.com/steamcmd ## SteamCMD Settings | https://docs.linuxgsm.com/steamcmd
# Server appid # Server appid
appid="897590" appid="897590"
steamcmdforcewindows="no"
# SteamCMD Branch | https://docs.linuxgsm.com/steamcmd/branch # SteamCMD Branch | https://docs.linuxgsm.com/steamcmd/branch
branch="" branch=""
betapassword="" betapassword=""

1
lgsm/config-default/config-lgsm/ndserver/_default.cfg

@ -112,6 +112,7 @@ sleeptime="0.5"
## SteamCMD Settings | https://docs.linuxgsm.com/steamcmd ## SteamCMD Settings | https://docs.linuxgsm.com/steamcmd
# Server appid # Server appid
appid="111710" appid="111710"
steamcmdforcewindows="no"
# SteamCMD Branch | https://docs.linuxgsm.com/steamcmd/branch # SteamCMD Branch | https://docs.linuxgsm.com/steamcmd/branch
branch="" branch=""
betapassword="" betapassword=""

1
lgsm/config-default/config-lgsm/nmrihserver/_default.cfg

@ -117,6 +117,7 @@ sleeptime="0.5"
## SteamCMD Settings | https://docs.linuxgsm.com/steamcmd ## SteamCMD Settings | https://docs.linuxgsm.com/steamcmd
# Server appid # Server appid
appid="317670" appid="317670"
steamcmdforcewindows="no"
# SteamCMD Branch | https://docs.linuxgsm.com/steamcmd/branch # SteamCMD Branch | https://docs.linuxgsm.com/steamcmd/branch
branch="" branch=""
betapassword="" betapassword=""

1
lgsm/config-default/config-lgsm/ns2cserver/_default.cfg

@ -119,6 +119,7 @@ sleeptime="0.5"
## SteamCMD Settings | https://docs.linuxgsm.com/steamcmd ## SteamCMD Settings | https://docs.linuxgsm.com/steamcmd
# Server appid # Server appid
appid="313900" appid="313900"
steamcmdforcewindows="no"
# SteamCMD Branch | https://docs.linuxgsm.com/steamcmd/branch # SteamCMD Branch | https://docs.linuxgsm.com/steamcmd/branch
branch="" branch=""
betapassword="" betapassword=""

1
lgsm/config-default/config-lgsm/ns2server/_default.cfg

@ -123,6 +123,7 @@ sleeptime="0.5"
## SteamCMD Settings | https://docs.linuxgsm.com/steamcmd ## SteamCMD Settings | https://docs.linuxgsm.com/steamcmd
# Server appid # Server appid
appid="4940" appid="4940"
steamcmdforcewindows="no"
# SteamCMD Branch | https://docs.linuxgsm.com/steamcmd/branch # SteamCMD Branch | https://docs.linuxgsm.com/steamcmd/branch
branch="" branch=""
betapassword="" betapassword=""

1
lgsm/config-default/config-lgsm/nsserver/_default.cfg

@ -111,6 +111,7 @@ sleeptime="0.5"
## SteamCMD Settings | https://docs.linuxgsm.com/steamcmd ## SteamCMD Settings | https://docs.linuxgsm.com/steamcmd
# Server appid # Server appid
appid="90" appid="90"
steamcmdforcewindows="no"
appidmod="cstrike" appidmod="cstrike"
# SteamCMD Branch | https://docs.linuxgsm.com/steamcmd/branch # SteamCMD Branch | https://docs.linuxgsm.com/steamcmd/branch
branch="" branch=""

1
lgsm/config-default/config-lgsm/onsetserver/_default.cfg

@ -104,6 +104,7 @@ sleeptime="0.5"
## SteamCMD Settings | https://docs.linuxgsm.com/steamcmd ## SteamCMD Settings | https://docs.linuxgsm.com/steamcmd
# Server appid # Server appid
appid="1204170" appid="1204170"
steamcmdforcewindows="no"
# SteamCMD Branch | https://docs.linuxgsm.com/steamcmd/branch # SteamCMD Branch | https://docs.linuxgsm.com/steamcmd/branch
branch="" branch=""
betapassword="" betapassword=""

1
lgsm/config-default/config-lgsm/opforserver/_default.cfg

@ -111,6 +111,7 @@ sleeptime="0.5"
## SteamCMD Settings | https://docs.linuxgsm.com/steamcmd ## SteamCMD Settings | https://docs.linuxgsm.com/steamcmd
# Server appid # Server appid
appid="90" appid="90"
steamcmdforcewindows="no"
appidmod="gearbox" appidmod="gearbox"
# SteamCMD Branch | https://docs.linuxgsm.com/steamcmd/branch # SteamCMD Branch | https://docs.linuxgsm.com/steamcmd/branch
branch="" branch=""

1
lgsm/config-default/config-lgsm/pcserver/_default.cfg

@ -104,6 +104,7 @@ sleeptime="0.5"
## SteamCMD Settings | https://docs.linuxgsm.com/steamcmd ## SteamCMD Settings | https://docs.linuxgsm.com/steamcmd
# Server appid # Server appid
appid="332670" appid="332670"
steamcmdforcewindows="no"
# SteamCMD Branch | https://docs.linuxgsm.com/steamcmd/branch # SteamCMD Branch | https://docs.linuxgsm.com/steamcmd/branch
branch="" branch=""
betapassword="" betapassword=""

1
lgsm/config-default/config-lgsm/pstbsserver/_default.cfg

@ -114,6 +114,7 @@ sleeptime="0.5"
## SteamCMD Settings | https://docs.linuxgsm.com/steamcmd ## SteamCMD Settings | https://docs.linuxgsm.com/steamcmd
# Server appid # Server appid
appid="746200" appid="746200"
steamcmdforcewindows="no"
# SteamCMD Branch | https://docs.linuxgsm.com/steamcmd/branch # SteamCMD Branch | https://docs.linuxgsm.com/steamcmd/branch
branch="" branch=""
betapassword="" betapassword=""

1
lgsm/config-default/config-lgsm/pvkiiserver/_default.cfg

@ -112,6 +112,7 @@ sleeptime="0.5"
## SteamCMD Settings | https://docs.linuxgsm.com/steamcmd ## SteamCMD Settings | https://docs.linuxgsm.com/steamcmd
# Server appid # Server appid
appid="17575" appid="17575"
steamcmdforcewindows="no"
# SteamCMD Branch | https://docs.linuxgsm.com/steamcmd/branch # SteamCMD Branch | https://docs.linuxgsm.com/steamcmd/branch
branch="" branch=""
betapassword="" betapassword=""

1
lgsm/config-default/config-lgsm/pvrserver/_default.cfg

@ -111,6 +111,7 @@ sleeptime="0.5"
## SteamCMD Settings | https://docs.linuxgsm.com/steamcmd ## SteamCMD Settings | https://docs.linuxgsm.com/steamcmd
# Server appid # Server appid
appid="622970" appid="622970"
steamcmdforcewindows="no"
# SteamCMD Branch | https://docs.linuxgsm.com/steamcmd/branch # SteamCMD Branch | https://docs.linuxgsm.com/steamcmd/branch
branch="" branch=""
betapassword="" betapassword=""

1
lgsm/config-default/config-lgsm/pzserver/_default.cfg

@ -108,6 +108,7 @@ sleeptime="0.5"
## SteamCMD Settings | https://docs.linuxgsm.com/steamcmd ## SteamCMD Settings | https://docs.linuxgsm.com/steamcmd
# Server appid # Server appid
appid="380870" appid="380870"
steamcmdforcewindows="no"
# SteamCMD Branch | https://docs.linuxgsm.com/steamcmd/branch # SteamCMD Branch | https://docs.linuxgsm.com/steamcmd/branch
branch="" branch=""
betapassword="" betapassword=""

1
lgsm/config-default/config-lgsm/qlserver/_default.cfg

@ -104,6 +104,7 @@ sleeptime="0.5"
## SteamCMD Settings | https://docs.linuxgsm.com/steamcmd ## SteamCMD Settings | https://docs.linuxgsm.com/steamcmd
# Server appid # Server appid
appid="349090" appid="349090"
steamcmdforcewindows="no"
# SteamCMD Branch | https://docs.linuxgsm.com/steamcmd/branch # SteamCMD Branch | https://docs.linuxgsm.com/steamcmd/branch
branch="" branch=""
betapassword="" betapassword=""

1
lgsm/config-default/config-lgsm/ricochetserver/_default.cfg

@ -111,6 +111,7 @@ sleeptime="0.5"
## SteamCMD Settings | https://docs.linuxgsm.com/steamcmd ## SteamCMD Settings | https://docs.linuxgsm.com/steamcmd
# Server appid # Server appid
appid="90" appid="90"
steamcmdforcewindows="no"
appidmod="ricochet" appidmod="ricochet"
# SteamCMD Branch | https://docs.linuxgsm.com/steamcmd/branch # SteamCMD Branch | https://docs.linuxgsm.com/steamcmd/branch
branch="" branch=""

1
lgsm/config-default/config-lgsm/roserver/_default.cfg

@ -112,6 +112,7 @@ sleeptime="0.5"
## SteamCMD Settings | https://docs.linuxgsm.com/steamcmd ## SteamCMD Settings | https://docs.linuxgsm.com/steamcmd
# Server appid # Server appid
appid="223250" appid="223250"
steamcmdforcewindows="no"
# SteamCMD Branch | https://docs.linuxgsm.com/steamcmd/branch # SteamCMD Branch | https://docs.linuxgsm.com/steamcmd/branch
branch="" branch=""
betapassword="" betapassword=""

1
lgsm/config-default/config-lgsm/rustserver/_default.cfg

@ -119,6 +119,7 @@ sleeptime="0.5"
## SteamCMD Settings | https://docs.linuxgsm.com/steamcmd ## SteamCMD Settings | https://docs.linuxgsm.com/steamcmd
# Server appid # Server appid
appid="258550" appid="258550"
steamcmdforcewindows="no"
# SteamCMD Branch | https://docs.linuxgsm.com/steamcmd/branch # SteamCMD Branch | https://docs.linuxgsm.com/steamcmd/branch
branch="" branch=""
betapassword="" betapassword=""

1
lgsm/config-default/config-lgsm/rwserver/_default.cfg

@ -107,6 +107,7 @@ sleeptime="0.5"
## SteamCMD Settings | https://docs.linuxgsm.com/steamcmd ## SteamCMD Settings | https://docs.linuxgsm.com/steamcmd
# Server appid # Server appid
appid="339010" appid="339010"
steamcmdforcewindows="no"
# SteamCMD Branch | https://docs.linuxgsm.com/steamcmd/branch # SteamCMD Branch | https://docs.linuxgsm.com/steamcmd/branch
branch="" branch=""
betapassword="" betapassword=""

1
lgsm/config-default/config-lgsm/sbotsserver/_default.cfg

@ -112,6 +112,7 @@ sleeptime="0.5"
## SteamCMD Settings | https://docs.linuxgsm.com/steamcmd ## SteamCMD Settings | https://docs.linuxgsm.com/steamcmd
# Server appid # Server appid
appid="974130" appid="974130"
steamcmdforcewindows="no"
# SteamCMD Branch | https://docs.linuxgsm.com/steamcmd/branch # SteamCMD Branch | https://docs.linuxgsm.com/steamcmd/branch
branch="" branch=""
betapassword="" betapassword=""

1
lgsm/config-default/config-lgsm/sbserver/_default.cfg

@ -111,6 +111,7 @@ sleeptime="0.5"
## SteamCMD Settings | https://docs.linuxgsm.com/steamcmd ## SteamCMD Settings | https://docs.linuxgsm.com/steamcmd
# Server appid # Server appid
appid="211820" appid="211820"
steamcmdforcewindows="no"
# SteamCMD Branch | https://docs.linuxgsm.com/steamcmd/branch # SteamCMD Branch | https://docs.linuxgsm.com/steamcmd/branch
branch="" branch=""
betapassword="" betapassword=""

1
lgsm/config-default/config-lgsm/scpslserver/_default.cfg

@ -127,6 +127,7 @@ consoleinteract="yes"
## SteamCMD Settings ## SteamCMD Settings
# Server appid # Server appid
appid="996560" appid="996560"
steamcmdforcewindows="no"
# SteamCMD Branch | https://docs.linuxgsm.com/steamcmd/branch # SteamCMD Branch | https://docs.linuxgsm.com/steamcmd/branch
branch="" branch=""
# Master Server | https://docs.linuxgsm.com/steamcmd/steam-master-server # Master Server | https://docs.linuxgsm.com/steamcmd/steam-master-server

1
lgsm/config-default/config-lgsm/scpslsmserver/_default.cfg

@ -127,6 +127,7 @@ consoleinteract="yes"
## SteamCMD Settings ## SteamCMD Settings
# Server appid # Server appid
appid="786920" appid="786920"
steamcmdforcewindows="no"
# SteamCMD Branch | https://docs.linuxgsm.com/steamcmd/branch # SteamCMD Branch | https://docs.linuxgsm.com/steamcmd/branch
branch="" branch=""
# Master Server | https://docs.linuxgsm.com/steamcmd/steam-master-server # Master Server | https://docs.linuxgsm.com/steamcmd/steam-master-server

1
lgsm/config-default/config-lgsm/sdtdserver/_default.cfg

@ -107,6 +107,7 @@ sleeptime="0.5"
## SteamCMD Settings | https://docs.linuxgsm.com/steamcmd ## SteamCMD Settings | https://docs.linuxgsm.com/steamcmd
# Server appid # Server appid
appid="294420" appid="294420"
steamcmdforcewindows="no"
# SteamCMD Branch | https://docs.linuxgsm.com/steamcmd/branch # SteamCMD Branch | https://docs.linuxgsm.com/steamcmd/branch
branch="" branch=""
betapassword="" betapassword=""

1
lgsm/config-default/config-lgsm/sfcserver/_default.cfg

@ -112,6 +112,7 @@ sleeptime="0.5"
## SteamCMD Settings | https://docs.linuxgsm.com/steamcmd ## SteamCMD Settings | https://docs.linuxgsm.com/steamcmd
# Server appid # Server appid
appid="244310" # Source 2013 SDK appid="244310" # Source 2013 SDK
steamcmdforcewindows="no"
# SteamCMD Branch | https://docs.linuxgsm.com/steamcmd/branch # SteamCMD Branch | https://docs.linuxgsm.com/steamcmd/branch
branch="" branch=""
betapassword="" betapassword=""

1
lgsm/config-default/config-lgsm/solserver/_default.cfg

@ -105,6 +105,7 @@ sleeptime="0.5"
## SteamCMD Settings | https://docs.linuxgsm.com/steamcmd ## SteamCMD Settings | https://docs.linuxgsm.com/steamcmd
# Server appid # Server appid
appid="638500" appid="638500"
steamcmdforcewindows="no"
# SteamCMD Branch | https://docs.linuxgsm.com/steamcmd/branch # SteamCMD Branch | https://docs.linuxgsm.com/steamcmd/branch
branch="" branch=""
betapassword="" betapassword=""

1
lgsm/config-default/config-lgsm/squadserver/_default.cfg

@ -109,6 +109,7 @@ sleeptime="0.5"
## SteamCMD Settings | https://docs.linuxgsm.com/steamcmd ## SteamCMD Settings | https://docs.linuxgsm.com/steamcmd
# Server appid # Server appid
appid="403240" appid="403240"
steamcmdforcewindows="no"
# SteamCMD Branch | https://docs.linuxgsm.com/steamcmd/branch # SteamCMD Branch | https://docs.linuxgsm.com/steamcmd/branch
branch="" branch=""
betapassword="" betapassword=""

1
lgsm/config-default/config-lgsm/stserver/_default.cfg

@ -114,6 +114,7 @@ sleeptime="0.5"
## SteamCMD Settings | https://docs.linuxgsm.com/steamcmd ## SteamCMD Settings | https://docs.linuxgsm.com/steamcmd
# Server appid # Server appid
appid="600760" appid="600760"
steamcmdforcewindows="no"
# SteamCMD Branch | https://docs.linuxgsm.com/steamcmd/branch # SteamCMD Branch | https://docs.linuxgsm.com/steamcmd/branch
branch="" branch=""
betapassword="" betapassword=""

1
lgsm/config-default/config-lgsm/svenserver/_default.cfg

@ -111,6 +111,7 @@ sleeptime="0.5"
## SteamCMD Settings | https://docs.linuxgsm.com/steamcmd ## SteamCMD Settings | https://docs.linuxgsm.com/steamcmd
# Server appid # Server appid
appid="276060" appid="276060"
steamcmdforcewindows="no"
# SteamCMD Branch | https://docs.linuxgsm.com/steamcmd/branch # SteamCMD Branch | https://docs.linuxgsm.com/steamcmd/branch
branch="" branch=""
betapassword="" betapassword=""

1
lgsm/config-default/config-lgsm/terrariaserver/_default.cfg

@ -111,6 +111,7 @@ sleeptime="0.5"
## SteamCMD Settings | https://docs.linuxgsm.com/steamcmd ## SteamCMD Settings | https://docs.linuxgsm.com/steamcmd
# Server appid # Server appid
appid="105600" appid="105600"
steamcmdforcewindows="no"
# SteamCMD Branch | https://docs.linuxgsm.com/steamcmd/branch # SteamCMD Branch | https://docs.linuxgsm.com/steamcmd/branch
branch="" branch=""
betapassword="" betapassword=""

1
lgsm/config-default/config-lgsm/tf2server/_default.cfg

@ -117,6 +117,7 @@ sleeptime="0.5"
## SteamCMD Settings | https://docs.linuxgsm.com/steamcmd ## SteamCMD Settings | https://docs.linuxgsm.com/steamcmd
# Server appid # Server appid
appid="232250" appid="232250"
steamcmdforcewindows="no"
# SteamCMD Branch | https://docs.linuxgsm.com/steamcmd/branch # SteamCMD Branch | https://docs.linuxgsm.com/steamcmd/branch
branch="" branch=""
betapassword="" betapassword=""

1
lgsm/config-default/config-lgsm/tfcserver/_default.cfg

@ -111,6 +111,7 @@ sleeptime="0.5"
## SteamCMD Settings | https://docs.linuxgsm.com/steamcmd ## SteamCMD Settings | https://docs.linuxgsm.com/steamcmd
# Server appid # Server appid
appid="90" appid="90"
steamcmdforcewindows="no"
appidmod="tfc" appidmod="tfc"
# SteamCMD Branch | https://docs.linuxgsm.com/steamcmd/branch # SteamCMD Branch | https://docs.linuxgsm.com/steamcmd/branch
branch="" branch=""

1
lgsm/config-default/config-lgsm/tsserver/_default.cfg

@ -111,6 +111,7 @@ sleeptime="0.5"
## SteamCMD Settings | https://docs.linuxgsm.com/steamcmd ## SteamCMD Settings | https://docs.linuxgsm.com/steamcmd
# Server appid # Server appid
appid="90" appid="90"
steamcmdforcewindows="no"
appidmod="cstrike" appidmod="cstrike"
# SteamCMD Branch | https://docs.linuxgsm.com/steamcmd/branch # SteamCMD Branch | https://docs.linuxgsm.com/steamcmd/branch
branch="" branch=""

1
lgsm/config-default/config-lgsm/tuserver/_default.cfg

@ -114,6 +114,7 @@ sleeptime="0.5"
## SteamCMD Settings | https://docs.linuxgsm.com/steamcmd ## SteamCMD Settings | https://docs.linuxgsm.com/steamcmd
# Server appid # Server appid
appid="439660" appid="439660"
steamcmdforcewindows="no"
# SteamCMD Branch | https://docs.linuxgsm.com/steamcmd/branch # SteamCMD Branch | https://docs.linuxgsm.com/steamcmd/branch
branch="" branch=""
betapassword="" betapassword=""

1
lgsm/config-default/config-lgsm/twserver/_default.cfg

@ -111,6 +111,7 @@ sleeptime="0.5"
## SteamCMD Settings | https://docs.linuxgsm.com/steamcmd ## SteamCMD Settings | https://docs.linuxgsm.com/steamcmd
# Server appid # Server appid
appid="380840" appid="380840"
steamcmdforcewindows="no"
# SteamCMD Branch | https://docs.linuxgsm.com/steamcmd/branch # SteamCMD Branch | https://docs.linuxgsm.com/steamcmd/branch
branch="" branch=""
betapassword="" betapassword=""

1
lgsm/config-default/config-lgsm/untserver/_default.cfg

@ -110,6 +110,7 @@ sleeptime="0.5"
## SteamCMD Settings | https://docs.linuxgsm.com/steamcmd ## SteamCMD Settings | https://docs.linuxgsm.com/steamcmd
# Server appid # Server appid
appid="1110390" appid="1110390"
steamcmdforcewindows="no"
# SteamCMD Branch | https://docs.linuxgsm.com/steamcmd/branch # SteamCMD Branch | https://docs.linuxgsm.com/steamcmd/branch
branch="" branch=""
betapassword="" betapassword=""

1
lgsm/config-default/config-lgsm/vsserver/_default.cfg

@ -111,6 +111,7 @@ sleeptime="0.5"
## SteamCMD Settings | https://docs.linuxgsm.com/steamcmd ## SteamCMD Settings | https://docs.linuxgsm.com/steamcmd
# Server appid # Server appid
appid="90" appid="90"
steamcmdforcewindows="no"
appidmod="cstrike" appidmod="cstrike"
# SteamCMD Branch | https://docs.linuxgsm.com/steamcmd/branch # SteamCMD Branch | https://docs.linuxgsm.com/steamcmd/branch
branch="" branch=""

1
lgsm/config-default/config-lgsm/wfserver/_default.cfg

@ -129,6 +129,7 @@ querytype="protocol-quake3"
## SteamCMD Settings | https://docs.linuxgsm.com/steamcmd ## SteamCMD Settings | https://docs.linuxgsm.com/steamcmd
# Server appid # Server appid
appid="1136510" appid="1136510"
steamcmdforcewindows="no"
appidmod="warfork" appidmod="warfork"
# SteamCMD Branch | https://docs.linuxgsm.com/steamcmd/branch # SteamCMD Branch | https://docs.linuxgsm.com/steamcmd/branch
branch="" branch=""

1
lgsm/config-default/config-lgsm/wurmserver/_default.cfg

@ -102,6 +102,7 @@ sleeptime="0.5"
## SteamCMD Settings | https://docs.linuxgsm.com/steamcmd ## SteamCMD Settings | https://docs.linuxgsm.com/steamcmd
# Server appid # Server appid
appid="402370" appid="402370"
steamcmdforcewindows="no"
# SteamCMD Branch | https://docs.linuxgsm.com/steamcmd/branch # SteamCMD Branch | https://docs.linuxgsm.com/steamcmd/branch
branch="" branch=""
betapassword="" betapassword=""

1
lgsm/config-default/config-lgsm/zmrserver/_default.cfg

@ -112,6 +112,7 @@ sleeptime="0.5"
## SteamCMD Settings | https://docs.linuxgsm.com/steamcmd ## SteamCMD Settings | https://docs.linuxgsm.com/steamcmd
# Server appid # Server appid
appid="244310" # Source 2013 SDK appid="244310" # Source 2013 SDK
steamcmdforcewindows="no"
# SteamCMD Branch | https://docs.linuxgsm.com/steamcmd/branch # SteamCMD Branch | https://docs.linuxgsm.com/steamcmd/branch
branch="" branch=""
betapassword="" betapassword=""

1
lgsm/config-default/config-lgsm/zpsserver/_default.cfg

@ -117,6 +117,7 @@ sleeptime="0.5"
## SteamCMD Settings | https://docs.linuxgsm.com/steamcmd ## SteamCMD Settings | https://docs.linuxgsm.com/steamcmd
# Server appid # Server appid
appid="17505" appid="17505"
steamcmdforcewindows="no"
# SteamCMD Branch | https://docs.linuxgsm.com/steamcmd/branch # SteamCMD Branch | https://docs.linuxgsm.com/steamcmd/branch
branch="" branch=""
betapassword="" betapassword=""

11
lgsm/functions/alert.sh

@ -188,6 +188,17 @@ elif [ -z "${pushovertoken}" ]&&[ "${commandname}" == "TEST-ALERT" ]; then
fn_script_error "Pushover token not set" fn_script_error "Pushover token not set"
fi fi
if [ "${sendgridalert}" == "on" ]&&[ -n "${sendgridalert}" ]; then
alert_sendgrid.sh
elif [ "${sendgridalert}" != "on" ]&&[ "${commandname}" == "TEST-ALERT" ]; then
fn_print_warn_nl "SendGrid alerts not enabled"
fn_script_log_warn "SendGrid alerts not enabled"
elif [ -z "${sendgridtoken}" ]&&[ "${commandname}" == "TEST-ALERT" ]; then
fn_print_error_nl "SendGrid token not set"
echo -e "* https://docs.linuxgsm.com/alerts/sendgrid"
fn_script_error "SendGrid token not set"
fi
if [ "${telegramalert}" == "on" ]&&[ -n "${telegramtoken}" ]; then if [ "${telegramalert}" == "on" ]&&[ -n "${telegramtoken}" ]; then
alert_telegram.sh alert_telegram.sh
elif [ "${telegramalert}" != "on" ]&&[ "${commandname}" == "TEST-ALERT" ]; then elif [ "${telegramalert}" != "on" ]&&[ "${commandname}" == "TEST-ALERT" ]; then

23
lgsm/functions/alert_sendgrid.sh

@ -0,0 +1,23 @@
#!/bin/bash
# LinuxGSM alert_sendgrid.sh function
# Author: Daniel Gibbs
# Website: https://linuxgsm.com
# Description: Sends SendGrid Email alert.
functionselfname="$(basename "$(readlink -f "${BASH_SOURCE[0]}")")"
fn_print_dots "Sending Email alert: SendGrid: ${email}"
sendgridsend=$(curl -s --request POST \
--url https://api.sendgrid.com/v3/mail/send \
--header "Authorization: Bearer ${sendgridtoken}" \
--header 'Content-Type: application/json' \
--data '{"personalizations": [{"to": [{"email": ${sendgridemail}"}]}],"from": {"email": "${sendgridemailfrom}"},"subject": "${alertemoji} ${alertsubject} ${alertemoji}","content": [{"type": "text/plain", "value": "$(cat "${alertlog}")"}]}')
if [ -z "${sendgridsend}" ]; then
fn_print_fail_nl "Sending Email alert: SendGrid: ${email}"
fn_script_log_fatal "Sending Email alert: SendGrid: ${email}"
else
fn_print_ok_nl "Sending Email alert: SendGrid: ${email}"
fn_script_log_pass "Sending Email alert: SendGrid: ${email}"
fi

103
lgsm/functions/alert_slack.sh

@ -13,54 +13,59 @@ fi
json=$(cat <<EOF json=$(cat <<EOF
{ {
"attachments": [ "attachments": [
{ {
"color": "#36a64f", "blocks": [
"blocks": [ {
{ "type": "section",
"type": "section", "text": {
"text": { "type": "mrkdwn",
"type": "mrkdwn", "text": "*${alertemoji} ${alertsubject} ${alertemoji}*"
"text": "*LinuxGSM Alert*" }
} },
}, {
{ "type": "section",
"type": "section", "text": {
"text": { "type": "mrkdwn",
"type": "mrkdwn", "text": "*${servername}*"
"text": "*${alertemoji} ${alertsubject}* \n ${alertbody}" }
} },
}, {
{ "type": "section",
"type": "divider" "text": {
}, "type": "mrkdwn",
{ "text": "${alertbody} \n More info: ${alerturl}"
"type": "section", }
"fields": [ },
{ {
"type": "mrkdwn", "type": "divider"
"text": "*Game:* \n ${gamename}" },
}, {
{ "type": "section",
"type": "mrkdwn", "fields": [
"text": "*Server IP:* \n ${alertip}:${port}" {
}, "type": "mrkdwn",
{ "text": "*Game:* \n ${gamename}"
"type": "mrkdwn", },
"text": "*Server Name:* \n ${servername}" {
} "type": "mrkdwn",
] "text": "*Server IP:* \n ${alertip}:${port}"
}, }
{ ]
"type": "section", },
"text": { {
"type": "mrkdwn", "type": "divider"
"text": "Hostname: ${HOSTNAME} / More info: ${alerturl}" },
} {
} "type": "section",
] "text": {
} "type": "mrkdwn",
] "text": "*Hostname:* ${HOSTNAME}"
}
}
]
}
]
} }
EOF EOF
) )
@ -73,6 +78,6 @@ if [ "${slacksend}" == "ok" ]; then
fn_print_ok_nl "Sending Slack alert" fn_print_ok_nl "Sending Slack alert"
fn_script_log_pass "Sending Slack alert" fn_script_log_pass "Sending Slack alert"
else else
fn_print_fail_nl "Sending Slack alert: ${slacksend}" fn_print_fail_nl "Sending Slack alert: ${slacksend}"
fn_script_log_fatal "Sending Slack alert: ${slacksend}" fn_script_log_fatal "Sending Slack alert: ${slacksend}"
fi fi

8
lgsm/functions/check_deps.sh

@ -364,7 +364,7 @@ fn_deps_build_debian(){
if [ "${distroversion}" == "14.04" ]||[ "${distroid}" == "debian" ]&& ! grep -qE "^deb .*non-free" /etc/apt/sources.list; then if [ "${distroversion}" == "14.04" ]||[ "${distroid}" == "debian" ]&& ! grep -qE "^deb .*non-free" /etc/apt/sources.list; then
: :
else else
array_deps_required+=( steamcmd ) array_deps_required+=( steamcmd libsdl2-2.0-0:i386 )
fi fi
fi fi
@ -464,6 +464,9 @@ fn_deps_build_debian(){
# Post Scriptum # Post Scriptum
elif [ "${shortname}" == "pstbs" ]; then elif [ "${shortname}" == "pstbs" ]; then
array_deps_required+=( libgconf-2-4 ) array_deps_required+=( libgconf-2-4 )
# Pavlov VR
elif [ "${shortname}" == "pvr" ]; then
array_deps_required+=( libc++1 )
fi fi
fn_deps_email fn_deps_email
fn_check_loop fn_check_loop
@ -579,6 +582,9 @@ fn_deps_build_redhat(){
# Post Scriptum # Post Scriptum
elif [ "${shortname}" == "pstbs" ]; then elif [ "${shortname}" == "pstbs" ]; then
array_deps_required+=( GConf2 ) array_deps_required+=( GConf2 )
# Pavlov VR
elif [ "${shortname}" == "pvr" ]; then
array_deps_required+=( libcxx )
fi fi
fn_deps_email fn_deps_email
fn_check_loop fn_check_loop

5
lgsm/functions/command_dev_detect_deps.sh

@ -155,6 +155,11 @@ while read -r lib; do
echo -e "libfreetype6" >> "${tmpdir}/.depdetect_ubuntu_list" echo -e "libfreetype6" >> "${tmpdir}/.depdetect_ubuntu_list"
echo -e "libfreetype6" >> "${tmpdir}/.depdetect_debian_list" echo -e "libfreetype6" >> "${tmpdir}/.depdetect_debian_list"
libdetected=1 libdetected=1
elif [ "${lib}" == "libc++.so.1" ]; then
echo -e "libcxx" >> "${tmpdir}/.depdetect_centos_list"
echo -e "libc++1" >> "${tmpdir}/.depdetect_ubuntu_list"
echo -e "libc++1" >> "${tmpdir}/.depdetect_debian_list"
libdetected=1
fi fi
if [ "${libdetected}" != "1" ]; then if [ "${libdetected}" != "1" ]; then

42
lgsm/functions/command_wipe.sh

@ -38,19 +38,6 @@ fn_wipe_server_files(){
fn_sleep_time fn_sleep_time
fn_script_log_pass "No procedural map file to remove" fn_script_log_pass "No procedural map file to remove"
fi fi
# Wipe procedural map save.
if [ -n "$(find "${serveridentitydir}" -type f -name "proceduralmap.*.sav")" ]; then
echo -en "removing map saves proceduralmap.*.sav file(s)..."
fn_sleep_time
fn_script_log_info "Removing procedural map save(s): ${serveridentitydir}/proceduralmap.*.sav"
find "${serveridentitydir:?}" -type f -name "proceduralmap.*.sav" -delete | tee -a "${lgsmlog}"
fn_wipe_exit_code
fn_sleep_time
else
echo -e "no procedural map save to remove"
fn_sleep_time
fn_script_log_pass "No procedural map save to remove"
fi
# Wipe Barren map. # Wipe Barren map.
if [ -n "$(find "${serveridentitydir}" -type f -name "barren*.map")" ]; then if [ -n "$(find "${serveridentitydir}" -type f -name "barren*.map")" ]; then
echo -en "removing barren map barren*.map file(s)..." echo -en "removing barren map barren*.map file(s)..."
@ -64,19 +51,6 @@ fn_wipe_server_files(){
fn_sleep_time fn_sleep_time
fn_script_log_pass "No barren map file to remove" fn_script_log_pass "No barren map file to remove"
fi fi
# Wipe barren map save.
if [ -n "$(find "${serveridentitydir}" -type f -name "barren*.sav")" ]; then
echo -en "removing barren map saves barren*.sav file(s)..."
fn_sleep_time
fn_script_log_info "Removing barren map save(s): ${serveridentitydir}/barren*.sav"
find "${serveridentitydir:?}" -type f -name "barren*.sav" -delete | tee -a "${lgsmlog}"
fn_wipe_exit_code
fn_sleep_time
else
echo -e "no barren map save to remove"
fn_sleep_time
fn_script_log_pass "No barren map save to remove."
fi
# Wipe custom map. # Wipe custom map.
if [ -n "$(find "${serveridentitydir}" -type f -name "*.map")" ]; then if [ -n "$(find "${serveridentitydir}" -type f -name "*.map")" ]; then
echo -en "removing custom map file(s)..." echo -en "removing custom map file(s)..."
@ -91,11 +65,11 @@ fn_wipe_server_files(){
fn_script_log_pass "No map file to remove" fn_script_log_pass "No map file to remove"
fi fi
# Wipe custom map save. # Wipe custom map save.
if [ -n "$(find "${serveridentitydir}" -type f -name "*.sav")" ]; then if [ -n "$(find "${serveridentitydir}" -type f -name "*.sav*")" ]; then
echo -en "removing map save *.sav file(s)..." echo -en "removing map save *.sav* file(s)..."
fn_sleep_time fn_sleep_time
fn_script_log_info "Removing map save(s): ${serveridentitydir}/*.sav" fn_script_log_info "Removing map save(s): ${serveridentitydir}/*.sav*"
find "${serveridentitydir:?}" -type f -name "*.sav" -delete | tee -a "${lgsmlog}" find "${serveridentitydir:?}" -type f -name "*.sav*" -delete | tee -a "${lgsmlog}"
fn_wipe_exit_code fn_wipe_exit_code
fn_sleep_time fn_sleep_time
else else
@ -224,11 +198,16 @@ fn_wipe_warning(){
fn_print_warn "wipe is about to start" fn_print_warn "wipe is about to start"
} }
# Will change the seed everytime the wipe command is run if the seed in config is not set.
fn_wipe_random_seed(){
shuf -i 1-2147483647 -n 1 > "${datadir}/${selfname}-seed.txt"
}
fn_print_dots "" fn_print_dots ""
check.sh check.sh
# Check if there is something to wipe. # Check if there is something to wipe.
if [ -d "${serveridentitydir}/storage" ]||[ -d "${serveridentitydir}/user" ]||[ -n "$(find "${serveridentitydir}" -type f -name "proceduralmap*.sav")" ]||[ -n "$(find "${serveridentitydir}" -type f -name "barren*.sav")" ]||[ -n "$(find "${serveridentitydir}" -type f -name "Log.*.txt")" ]||[ -n "$(find "${serveridentitydir}" -type f -name "player.deaths.*.db")" ]||[ -n "$(find "${serveridentitydir}" -type f -name "player.blueprints.*.db")" ]||[ -n "$(find "${serveridentitydir}" -type f -name "sv.files.*.db")" ]; then if [ -d "${serveridentitydir}/storage" ]||[ -d "${serveridentitydir}/user" ]||[ -n "$(find "${serveridentitydir}" -type f -name "*.sav*")" ]||[ -n "$(find "${serveridentitydir}" -type f -name "Log.*.txt")" ]||[ -n "$(find "${serveridentitydir}" -type f -name "player.deaths.*.db")" ]||[ -n "$(find "${serveridentitydir}" -type f -name "player.blueprints.*.db")" ]||[ -n "$(find "${serveridentitydir}" -type f -name "sv.files.*.db")" ]; then
fn_wipe_warning fn_wipe_warning
check_status.sh check_status.sh
if [ "${status}" != "0" ]; then if [ "${status}" != "0" ]; then
@ -245,6 +224,7 @@ if [ -d "${serveridentitydir}/storage" ]||[ -d "${serveridentitydir}/user" ]||[
fi fi
fn_print_complete_nl "Wiping ${selfname}" fn_print_complete_nl "Wiping ${selfname}"
fn_script_log_pass "Wiping ${selfname}" fn_script_log_pass "Wiping ${selfname}"
fn_wipe_random_seed
else else
fn_print_ok_nl "Wipe not required" fn_print_ok_nl "Wipe not required"
fn_script_log_pass "Wipe not required" fn_script_log_pass "Wipe not required"

42
lgsm/functions/core_dl.sh

@ -67,7 +67,7 @@ fn_dl_steamcmd(){
${unbuffer} ${steamcmdcommand} +login "${steamuser}" "${steampass}" +force_install_dir "${serverfiles}" +app_set_config 90 mod "${appidmod}" +app_update "${appid}" ${validate} +quit | uniq | tee -a "${lgsmlog}" "${steamcmdlog}" ${unbuffer} ${steamcmdcommand} +login "${steamuser}" "${steampass}" +force_install_dir "${serverfiles}" +app_set_config 90 mod "${appidmod}" +app_update "${appid}" ${validate} +quit | uniq | tee -a "${lgsmlog}" "${steamcmdlog}"
fi fi
# Force Windows Platform type. # Force Windows Platform type.
elif [ "${shortname}" == "ac" ]||[ "${shortname}" == "jk2" ]; then elif [ "${steamcmdforcewindows}" == "yes" ]; then
if [ -n "${branch}" ]&&[ -n "${betapassword}" ]; then if [ -n "${branch}" ]&&[ -n "${betapassword}" ]; then
${unbuffer} ${steamcmdcommand} +@sSteamCmdForcePlatformType windows +login "${steamuser}" "${steampass}" +force_install_dir "${serverfiles}" +app_update "${appid}" -beta "${branch}" -betapassword "${betapassword}" ${validate} +quit | uniq | tee -a "${lgsmlog}" "${steamcmdlog}" ${unbuffer} ${steamcmdcommand} +@sSteamCmdForcePlatformType windows +login "${steamuser}" "${steampass}" +force_install_dir "${serverfiles}" +app_update "${appid}" -beta "${branch}" -betapassword "${betapassword}" ${validate} +quit | uniq | tee -a "${lgsmlog}" "${steamcmdlog}"
elif [ -n "${branch}" ]; then elif [ -n "${branch}" ]; then
@ -447,6 +447,46 @@ fn_update_function(){
} }
# Function to download latest github release.
# $1 GitHub user / organisation.
# $2 Repo name.
# $3 Destination for download.
# $4 Search string in releases (needed if there are more files that can be downloaded from the release pages).
fn_dl_latest_release_github(){
local githubreleaseuser="${1}"
local githubreleaserepo="${2}"
local githubreleasedownloadpath="${3}"
local githubreleasesearch="${4}"
local githublatestreleaseurl="https://api.github.com/repos/${githubreleaseuser}/${githubreleaserepo}/releases/latest"
# Get last github release.
# If no search for the release filename is set, just get the first file from the latest release.
if [ -z "${githubreleasesearch}" ]; then
githubreleaseassets=$(curl -s "${githublatestreleaseurl}" | jq '[ .assets[] ]')
else
githubreleaseassets=$(curl -s "${githublatestreleaseurl}" | jq "[ .assets[]|select(.browser_download_url | contains(\"${githubreleasesearch}\")) ]")
fi
# Check how many releases we got from the api and exit if we have more then one.
if [ "$(echo -e "${githubreleaseassets}" | jq '. | length')" -gt 1 ]; then
fn_print_fatal_nl "Found more than one release to download - Please report this to the LinuxGSM issue tracker"
fn_script_log_fatal "Found more than one release to download - Please report this to the LinuxGSM issue tracker"
else
# Set variables for download via fn_fetch_file.
githubreleasefilename=$(echo -e "${githubreleaseassets}" | jq -r '.[]name')
githubreleasedownloadlink=$(echo -e "${githubreleaseassets}" | jq -r '.[]browser_download_url')
# Error if no version is there.
if [ -z "${githubreleasefilename}" ]; then
fn_print_fail_nl "Cannot get version from GitHub API for ${githubreleaseuser}/${githubreleaserepo}"
fn_script_log_fatal "Cannot get version from GitHub API for ${githubreleaseuser}/${githubreleaserepo}"
else
# Fetch file from the remote location from the existing function to the ${tmpdir} for now.
fn_fetch_file "${githubreleasedownloadlink}" "" "${githubreleasefilename}" "" "${githubreleasedownloadpath}" "${githubreleasefilename}"
fi
fi
}
# Check that curl is installed # Check that curl is installed
if [ ! "$(command -v curl 2>/dev/null)" ]; then if [ ! "$(command -v curl 2>/dev/null)" ]; then
echo -e "[ FAIL ] Curl is not installed" echo -e "[ FAIL ] Curl is not installed"

10
lgsm/functions/core_functions.sh

@ -62,6 +62,11 @@ functionfile="${FUNCNAME[0]}"
fn_fetch_function fn_fetch_function
} }
core_github.sh(){
functionfile="${FUNCNAME[0]}"
fn_fetch_function
}
# Commands # Commands
command_backup.sh(){ command_backup.sh(){
@ -573,6 +578,11 @@ functionfile="${FUNCNAME[0]}"
fn_fetch_function fn_fetch_function
} }
alert_sendgrid.sh(){
functionfile="${FUNCNAME[0]}"
fn_fetch_function
}
alert_slack.sh(){ alert_slack.sh(){
functionfile="${FUNCNAME[0]}" functionfile="${FUNCNAME[0]}"
fn_fetch_function fn_fetch_function

113
lgsm/functions/core_github.sh

@ -0,0 +1,113 @@
#!/bin/bash
# LinuxGSM core_github.sh function
# Author: Christian Birk
# Website: https://linuxgsm.com
# Description: core function file for updates via github
functionselfname="$(basename "$(readlink -f "${BASH_SOURCE[0]}")")"
github_api="https://api.github.com"
fn_githublocalversionfile(){
local githubreleaseuser="${1}"
local githubreleaserepo="${2}"
githublocalversionfile="${datadir}/github-${githubreleaseuser}-${githubreleaserepo}-version"
}
# $1 githubuser/group
# $2 github repo name
fn_github_get_latest_release_version(){
local githubreleaseuser="${1}"
local githubreleaserepo="${2}"
local githublatestreleaseurl="${github_api}/repos/${githubreleaseuser}/${githubreleaserepo}/releases/latest"
githubreleaseversion=$(curl -s --connect-timeout 10 "${githublatestreleaseurl}" | jq '.tag_name' )
# error if no version is there
if [ -z "${githubreleaseversion}" ]; then
fn_print_fail_nl "Cannot get version from GitHub API for ${githubreleaseuser}/${githubreleaserepo}"
fn_script_log_fatal "Cannot get version from GitHub API for ${githubreleaseuser}/${githubreleaserepo}"
fi
}
# $1 githubuser/group
# $2 github repo name
fn_github_set_latest_release_version(){
local githubreleaseuser="${1}"
local githubreleaserepo="${2}"
fn_githublocalversionfile "${githubreleaseuser}" "${githubreleaserepo}"
local githublatestreleaseurl="${github_api}/repos/${githubreleaseuser}/${githubreleaserepo}/releases/latest"
githubreleaseversion=$(curl -s "${githublatestreleaseurl}" | jq -r '.tag_name' )
# error if no version is there
if [ -z "${githubreleaseversion}" ]; then
fn_print_fail_nl "Cannot get version from GitHub API for ${githubreleaseuser}/${githubreleaserepo}"
fn_script_log_fatal "Cannot get version from GitHub API for ${githubreleaseuser}/${githubreleaserepo}"
else
echo "${githubreleaseversion}" > "${githublocalversionfile}"
fi
}
# $1 githubuser/group
# $2 github repo name
fn_github_get_installed_version(){
local githubreleaseuser="${1}"
local githubreleaserepo="${2}"
fn_githublocalversionfile "${githubreleaseuser}" "${githubreleaserepo}"
githublocalversion=$(cat "${githublocalversionfile}")
}
# $1 githubuser/group
# $2 github repo name
# if a update needs to be downloaded - updateneeded is set to 1
fn_github_compare_version(){
local githubreleaseuser="${1}"
local githubreleaserepo="${2}"
exitcode=0
updateneeded=0
fn_githublocalversionfile "${githubreleaseuser}" "${githubreleaserepo}"
local githublatestreleaseurl="${github_api}/repos/${githubreleaseuser}/${githubreleaserepo}/releases/latest"
githublocalversion=$(cat "${githublocalversionfile}")
githubreleaseversion=$(curl -s "${githublatestreleaseurl}" | jq '.tag_name' )
# error if no version is there
if [ -z "${githubreleaseversion}" ]; then
fn_print_fail_nl "Can not get version from Github Api for ${githubreleaseuser}/${githubreleaserepo}"
fn_script_log_fatal "Can not get version from Github Api for ${githubreleaseuser}/${githubreleaserepo}"
else
if [ "${githublocalversion}" == "${githubreleaseversion}" ]; then
echo -en "\n"
echo -e "No update from github.com/${githubreleaseuser}/${githubreleaserepo}/ available:"
echo -e "* Local build: ${red}${githublocalversion}${default}"
echo -e "* Remote build: ${green}${githubreleaseversion}${default}"
echo -en "\n"
else
# check if version that is installed is higher than the remote version to not override it
last_version=$(echo -e "${githublocalversion}\n${githubreleaseversion}" | sort -V | head -n1 )
if [ "${githubreleaseversion}" == "${last_version}" ]; then
echo -en "\n"
echo -e "Update from github.com/${githubreleaseuser}/${githubreleaserepo}/ available:"
echo -e "* Local build: ${red}${githublocalversion}${default}"
echo -e "* Remote build: ${green}${githubreleaseversion}${default}"
echo -en "\n"
updateneeded=1
else
# local version is higher than the remote version output this to the user
# strange case but could be possible, as a release could be removed from github
echo -en "\n"
echo -e "Local version is newer than the remote version"
echo -e "* Local version: ${green}${githublocalversion}${default}"
echo -e "* Remote version: ${green}${githubreleaseversion}${default}"
echo -en "\n"
exitcode=1
fi
fi
fi
}

12
lgsm/functions/core_steamcmd.sh

@ -13,16 +13,6 @@ fn_install_steamcmd(){
if [ ! -d "${steamcmddir}" ]; then if [ ! -d "${steamcmddir}" ]; then
mkdir -p "${steamcmddir}" mkdir -p "${steamcmddir}"
fi fi
remote_fileurl="${1}"
remote_fileurl_backup="${2}"
remote_fileurl_name="${3}"
remote_fileurl_backup_name="${4}"
local_filedir="${5}"
local_filename="${6}"
chmodx="${7:-0}"
run="${8:-0}"
forcedl="${9:-0}"
md5="${10:-0}"
fn_fetch_file "http://media.steampowered.com/client/steamcmd_linux.tar.gz" "" "" "" "${tmpdir}" "steamcmd_linux.tar.gz" "" "norun" "noforce" "nomd5" fn_fetch_file "http://media.steampowered.com/client/steamcmd_linux.tar.gz" "" "" "" "${tmpdir}" "steamcmd_linux.tar.gz" "" "norun" "noforce" "nomd5"
fn_dl_extract "${tmpdir}" "steamcmd_linux.tar.gz" "${steamcmddir}" fn_dl_extract "${tmpdir}" "steamcmd_linux.tar.gz" "${steamcmddir}"
chmod +x "${steamcmddir}/steamcmd.sh" chmod +x "${steamcmddir}/steamcmd.sh"
@ -248,8 +238,8 @@ fn_update_steamcmd_compare(){
exitbypass=1 exitbypass=1
command_start.sh command_start.sh
fn_firstcommand_reset fn_firstcommand_reset
unset exitbypass
fi fi
unset exitbypass
date +%s > "${lockdir}/lastupdate.lock" date +%s > "${lockdir}/lastupdate.lock"
alert="update" alert="update"
elif [ "${commandname}" == "CHECK-UPDATE" ]; then elif [ "${commandname}" == "CHECK-UPDATE" ]; then

42
lgsm/functions/info_config.sh

@ -405,30 +405,6 @@ fn_info_config_factorio(){
fi fi
} }
fn_info_config_inss(){
if [ ! -f "${servercfgfullpath}" ]; then
rconenabled="${unavailable}"
rconpassword="${unavailable}"
rconport="${zero}"
maxplayers="${zero}"
port="${zero}"
queryport="${zero}"
queryenabled="${unavailable}"
rconport="${zero}"
gamemode="${unavailable}"
gameworld="${unavailable}"
else
rconenabled=$(grep "bEnabled" "${servercfgfullpath}" | sed -e 's/^[ \t]*//g' -e '/^#/d' -e 's/bEnabled//g' | tr -d '=\";,:' | sed -e 's/^[ \t]*//' -e 's/[ \t]*$//')
rconpassword=$(grep "Password" "${servercfgfullpath}" | sed -e 's/^[ \t]*//g' -e '/^#/d' -e 's/Password//g' | tr -d '=\";,:' | sed -e 's/^[ \t]*//' -e 's/[ \t]*$//')
rconport=$(grep "ListenPort" "${servercfgfullpath}" | tr -cd '[:digit:]')
# Not Set
rconenabled=${rconenabled:-"NOT SET"}
rconpassword=${rconpassword:-"NOT SET"}
rconport=${rconport:-"0"}
fi
}
fn_info_config_minecraft(){ fn_info_config_minecraft(){
if [ ! -f "${servercfgfullpath}" ]; then if [ ! -f "${servercfgfullpath}" ]; then
servername="${unavailable}" servername="${unavailable}"
@ -1088,15 +1064,15 @@ fn_info_config_unreal2(){
webadminuser="${unavailable}" webadminuser="${unavailable}"
webadminpass="${unavailable}" webadminpass="${unavailable}"
else else
servername=$(grep "ServerName" "${servercfgfullpath}" | sed -e 's/^[ \t]*//g' -e '/^#/d' -e 's/ServerName//g' | tr -d '=\";,:' | sed -e 's/^[ \t]*//' -e 's/[ \t]*$//'| sed 's/\r$//') servername=$(sed -nr 's/^ServerName=(.*)$/\1/p' "${servercfgfullpath}" | tr -d '=\";,:' | sed 's/\r$//')
serverpassword=$(grep "GamePassword" "${servercfgfullpath}" | sed -e 's/^[ \t]*//g' -e '/^#/d' -e 's/GamePassword//g' | tr -d '=\";,:' | sed -e 's/^[ \t]*//' -e 's/[ \t]*$//'| sed 's/\r$//') serverpassword=$(sed -nr 's/^GamePassword=(.*)$/\1/p' "${servercfgfullpath}" | tr -d '=\";,:' | sed 's/\r$//')
adminpassword=$(grep "AdminPassword" "${servercfgfullpath}" | sed -e 's/^[ \t]*//g' -e '/^#/d' -e 's/AdminPassword//g' | tr -d '=\";,:' | sed -e 's/^[ \t]*//' -e 's/[ \t]*$//'| sed 's/\r$//') adminpassword=$(sed -nr 's/^AdminPassword=(.*)$/\1/p' "${servercfgfullpath}" | tr -d '=\";,:' | sed 's/\r$//')
port=$(grep "Port" "${servercfgfullpath}" | sed -e 's/^[ \t]*//g' | grep "^Port" | grep -v "#" | tr -cd '[:digit:]') port=$(sed -nr 's/^Port=(.*)$/\1/p' "${servercfgfullpath}" | tr -cd '[:digit:]')
queryport=$((port + 1)) queryport=$((port + 1))
queryportgs=$(grep "OldQueryPortNumber" "${servercfgfullpath}" | grep -v "#" | tr -cd '[:digit:]') queryportgs=$(sed -nr 's/^OldQueryPortNumber=(.*)$/\1/p' "${servercfgfullpath}" | tr -cd '[:digit:]')
webadminenabled=$(grep "bEnabled" "${servercfgfullpath}" | sed -e 's/^[ \t]*//g' -e '/^#/d' -e 's/bEnabled//g' | tr -d '=\";,:' | sed -e 's/^[ \t]*//' -e 's/[ \t]*$//'| sed 's/\r$//') webadminenabled=$(sed -nr 's/^bEnabled=(.*)$/\1/p' "${servercfgfullpath}" | tr -d '=\";,:' | sed 's/\r$//')
webadminport=$(grep "ListenPort" "${servercfgfullpath}" | grep -v "#" | tr -cd '[:digit:]') webadminport=$(sed -nr 's/^ListenPort=(.*)$/\1/p' "${servercfgfullpath}" | tr -cd '[:digit:]')
webadminuser=$(grep "AdminName" "${servercfgfullpath}" | sed -e 's/^[ \t]*//g' -e '/^#/d' -e 's/AdminName//g' | tr -d '=\";,:' | sed -e 's/^[ \t]*//' -e 's/[ \t]*$//'| sed 's/\r$//') webadminuser=$(sed -nr 's/^AdminName=(.*)$/\1/p' "${servercfgfullpath}" | tr -d '=\";,:' | sed 's/\r$//')
webadminpass="${adminpassword}" webadminpass="${adminpassword}"
# Not Set # Not Set
@ -1623,8 +1599,6 @@ elif [ "${shortname}" == "eco" ]; then
fn_info_config_eco fn_info_config_eco
elif [ "${shortname}" == "fctr" ]; then elif [ "${shortname}" == "fctr" ]; then
fn_info_config_factorio fn_info_config_factorio
elif [ "${shortname}" == "inss" ]; then
fn_info_config_inss
elif [ "${shortname}" == "jc2" ]; then elif [ "${shortname}" == "jc2" ]; then
fn_info_config_justcause2 fn_info_config_justcause2
elif [ "${shortname}" == "jc3" ]; then elif [ "${shortname}" == "jc3" ]; then

7
lgsm/functions/info_parms.sh

@ -140,6 +140,13 @@ fn_info_parms_rust(){
maxplayers=${maxplayers:-"0"} maxplayers=${maxplayers:-"0"}
saveinterval=${saveinterval:-"0"} saveinterval=${saveinterval:-"0"}
tickrate=${tickrate:-"0"} tickrate=${tickrate:-"0"}
# Part of random seed feature.
if [ -z "${seed}" ]; then
if [ ! -f "${datadir}/${selfname}-seed.txt" ]; then
shuf -i 1-2147483647 -n 1 > "${datadir}/${selfname}-seed.txt"
fi
seed=$(cat "${datadir}/${selfname}-seed.txt")
fi
} }
fn_info_parms_samp(){ fn_info_parms_samp(){

14
lgsm/functions/update_factorio.sh

@ -94,12 +94,14 @@ fn_update_factorio_compare(){
if [ "${status}" == "0" ]; then if [ "${status}" == "0" ]; then
exitbypass=1 exitbypass=1
fn_update_factorio_dl fn_update_factorio_dl
exitbypass=1 if [ "${requirerestart}" == "1" ]; then
command_start.sh exitbypass=1
fn_firstcommand_reset command_start.sh
exitbypass=1 fn_firstcommand_reset
command_stop.sh exitbypass=1
fn_firstcommand_reset command_stop.sh
fn_firstcommand_reset
fi
# If server started. # If server started.
else else
fn_print_restart_warning fn_print_restart_warning

Some files were not shown because too many files changed in this diff

Loading…
Cancel
Save