Browse Source

Merge branch 'develop' into feature/header-refactor

pull/3198/head
Daniel Gibbs 5 years ago
parent
commit
ae4c345435
  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. 9
      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. 3
      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. 169
      lgsm/config-default/config-lgsm/scpslserver/_default.cfg
  69. 169
      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. 2
      lgsm/data/serverlist.csv
  89. 11
      lgsm/functions/alert.sh
  90. 23
      lgsm/functions/alert_sendgrid.sh
  91. 103
      lgsm/functions/alert_slack.sh
  92. 11
      lgsm/functions/check_deps.sh
  93. 5
      lgsm/functions/command_dev_detect_deps.sh
  94. 42
      lgsm/functions/command_wipe.sh
  95. 42
      lgsm/functions/core_dl.sh
  96. 10
      lgsm/functions/core_functions.sh
  97. 113
      lgsm/functions/core_github.sh
  98. 12
      lgsm/functions/core_steamcmd.sh
  99. 64
      lgsm/functions/info_config.sh
  100. 13
      lgsm/functions/info_messages.sh

1
lgsm/config-default/config-lgsm/acserver/_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="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

@ -141,6 +141,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

@ -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="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

@ -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="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

@ -129,6 +129,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

@ -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="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

@ -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="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

@ -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="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

@ -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="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

@ -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="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

@ -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="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

@ -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="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

@ -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="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

@ -106,6 +106,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

@ -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="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

@ -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="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

@ -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="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

@ -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="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

@ -139,6 +139,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=""
@ -157,7 +158,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

@ -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="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

@ -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="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

@ -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="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

@ -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="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

@ -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="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

@ -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="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

@ -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="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

@ -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="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

@ -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="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

@ -106,6 +106,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

@ -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="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

@ -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="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

@ -130,6 +130,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

@ -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="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

@ -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="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

@ -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="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

@ -125,6 +125,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

@ -120,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="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=""

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

@ -19,12 +19,13 @@ 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
fn_parms(){ fn_parms(){
# Allows serverpassword to work with parameters # Allows serverpassword to work with parameters
if [ "${serverpassword}" != "NOT SET" ]; then if [ "${serverpassword}" != "" ]; then
parms="${defaultmap}?Scenario=${defaultscenario}?MaxPlayers=${maxplayers}?Port=${port}?QueryPort=${queryport}?password="${serverpassword}" -hostname="${servername}" -log" parms="${defaultmap}?Scenario=${defaultscenario}?MaxPlayers=${maxplayers}?password='${serverpassword}' -Port=${port} -QueryPort=${queryport} -hostname="${servername}" -log"
else else
parms="${defaultmap}?Scenario=${defaultscenario}?MaxPlayers=${maxplayers}?Port=${port}?QueryPort=${queryport} -hostname="${servername}" -log" parms="${defaultmap}?Scenario=${defaultscenario}?MaxPlayers=${maxplayers} -Port=${port} -QueryPort=${queryport} -hostname='${servername}' -log"
fi fi
} }
@ -121,6 +122,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=""
@ -170,7 +172,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

@ -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="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

@ -67,6 +67,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"
@ -106,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="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

@ -106,6 +106,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

@ -135,6 +135,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

@ -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="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

@ -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="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

@ -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="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

@ -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="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

@ -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="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

@ -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="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

@ -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="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

@ -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="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

@ -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="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

@ -125,6 +125,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

@ -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="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

@ -106,6 +106,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

@ -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="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

@ -106,6 +106,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

@ -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="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

@ -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="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

@ -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="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

@ -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="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

@ -106,6 +106,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

@ -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="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

@ -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="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=""

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

@ -14,7 +14,7 @@ port="28015"
rconport="28016" rconport="28016"
appport=28082 appport=28082
rconpassword="CHANGE_ME" rconpassword="CHANGE_ME"
rconweb="1" # Value is: 1 for the Facepunch web panel; 0 for RCON tools like Rusty or Rustadmin. rconweb="1" # Value is: 1 for the Facepunch web panel, Rustadmin desktop and Rustadmin Online; 0 for RCON tools like Rusty.
servername="Rust" servername="Rust"
maxplayers="50" maxplayers="50"
seed="" # range: 1-2147483647, used to reproduce a procedural map. seed="" # range: 1-2147483647, used to reproduce a procedural map.
@ -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="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

@ -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="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

@ -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="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

@ -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="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=""

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

@ -0,0 +1,169 @@
##################################
######## Default Settings ########
##################################
# DO NOT EDIT WILL BE OVERWRITTEN!
# Copy settings from here and use them in either
# common.cfg - applies settings to every instance
# [instance].cfg - applies settings to a specific instance
#### Server Settings ####
## Server Start Settings | https://docs.linuxgsm.com/configuration/start-parameters
## All server settings except the server port are done in the config file:
## Docs: https://en.scpslgame.com/index.php?title=Docs:Server_Config
port="7777"
## Server Start Command | https://docs.linuxgsm.com/configuration/start-parameters#additional-parameters
fn_parms(){
parms="${port}"
}
#### LinuxGSM Settings ####
## Notification Alerts
# (on|off)
# Display IP | https://docs.linuxgsm.com/alerts#display-ip
displayip=""
# More info | https://docs.linuxgsm.com/alerts#more-info
postalert="off"
postdays="7"
posttarget="https://hastebin.com"
# Discord Alerts | https://docs.linuxgsm.com/alerts/discord
discordalert="off"
discordwebhook="webhook"
# Slack Alerts | https://docs.linuxgsm.com/alerts/slack
slackalert="off"
slackwebhook="webhook"
# Email Alerts | https://docs.linuxgsm.com/alerts/email
emailalert="off"
email="[email protected]"
emailfrom=""
# IFTTT Alerts | https://docs.linuxgsm.com/alerts/ifttt
iftttalert="off"
ifttttoken="accesstoken"
iftttevent="linuxgsm_alert"
# Mailgun Email Alerts | https://docs.linuxgsm.com/alerts/mailgun
mailgunalert="off"
mailguntoken="accesstoken"
mailgundomain="example.com"
mailgunemailfrom="[email protected]"
mailgunemail="[email protected]"
# Pushbullet Alerts | https://docs.linuxgsm.com/alerts/pushbullet
pushbulletalert="off"
pushbullettoken="accesstoken"
channeltag=""
# Pushover Alerts | https://docs.linuxgsm.com/alerts/pushover
pushoveralert="off"
pushovertoken="accesstoken"
# Telegram Alerts | https://docs.linuxgsm.com/alerts/telegram
# You can add a custom cURL string eg proxy (useful in Russia) or else in "curlcustomstring".
# like a "--socks5 ipaddr:port" for socks5 proxy see more in "curl --help", if you not need
# any custom string in curl - simple ignore this parameter.
telegramalert="off"
telegramtoken="accesstoken"
telegramchatid=""
curlcustomstring=""
## Updating | https://docs.linuxgsm.com/commands/update
updateonstart="off"
## Backup | https://docs.linuxgsm.com/commands/backup
maxbackups="4"
maxbackupdays="30"
stoponbackup="on"
## Logging | https://docs.linuxgsm.com/features/logging
consolelogging="on"
logdays="7"
## Monitor | https://docs.linuxgsm.com/commands/monitor
# Query delay time
querydelay="1"
#### LinuxGSM Advanced Settings ####
# ANSI Colors
ansi="on"
# Message Display Time
sleeptime="0.5"
# Stop Mode | https://docs.linuxgsm.com/steamcmd/stopmode
# 1: tmux kill
# 2: CTRL+c
# 3: quit
# 4: quit 120s
# 5: stop
# 6: q
# 7: exit
# 8: 7 Days to Die
# 9: Gold Source
# 10: Teamspeak 3
stopmode="7"
## Query mode
# 1: session only
# 2: gamedig + gsquery
# 3: gamedig
# 4: gsquery
# 5: tcp
querymode="1"
querytype=""
## Console type
consoleverbose="yes"
consoleinteract="yes"
## SteamCMD Settings
# Server appid
appid="996560"
steamcmdforcewindows="no"
# SteamCMD Branch | https://docs.linuxgsm.com/steamcmd/branch
branch=""
# Master Server | https://docs.linuxgsm.com/steamcmd/steam-master-server
steammaster=""
## LinuxGSM Server Details
# Do not edit
gamename="SCP: Secret Laboratory"
engine="unity3d"
glibc="2.27"
#### Directories ####
# Edit with care
## Server Specific Directories
systemdir="${serverfiles}"
executabledir="${systemdir}"
executable="./LocalAdmin"
servercfg="config_gameplay.txt"
servercfgdefault="config_gameplay.txt"
servercfgdir="${HOME}/.config/SCP Secret Laboratory/config/${port}"
servercfgfullpath="${servercfgdir}/${servercfg}"
## Backup Directory
backupdir="${rootdir}/backups"
## Logging Directories
logdir="${rootdir}/log"
gamelogdir="${HOME}/.config/SCP Secret Laboratory/LocalAdminLogs/${port}"
lgsmlogdir="${logdir}/script"
consolelogdir="${logdir}/console"
lgsmlog="${lgsmlogdir}/${selfname}-script.log"
consolelog="${consolelogdir}/${selfname}-console.log"
alertlog="${lgsmlogdir}/${selfname}-alert.log"
postdetailslog="${lgsmlogdir}/${selfname}-postdetails.log"
## Logs Naming
lgsmlogdate="${lgsmlogdir}/${selfname}-script-$(date '+%Y-%m-%d-%H:%M:%S').log"
consolelogdate="${consolelogdir}/${selfname}-console-$(date '+%Y-%m-%d-%H:%M:%S').log"

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

@ -0,0 +1,169 @@
##################################
######## Default Settings ########
##################################
# DO NOT EDIT WILL BE OVERWRITTEN!
# Copy settings from here and use them in either
# common.cfg - applies settings to every instance
# [instance].cfg - applies settings to a specific instance
#### Server Settings ####
## Server Start Settings | https://docs.linuxgsm.com/configuration/start-parameters
## All server settings except the server port are done in the config file:
## Docs: https://en.scpslgame.com/index.php?title=Docs:Server_Config
port="7777"
## Server Start Command | https://docs.linuxgsm.com/configuration/start-parameters#additional-parameters
fn_parms(){
parms="${port}"
}
#### LinuxGSM Settings ####
## Notification Alerts
# (on|off)
# Display IP | https://docs.linuxgsm.com/alerts#display-ip
displayip=""
# More info | https://docs.linuxgsm.com/alerts#more-info
postalert="off"
postdays="7"
posttarget="https://hastebin.com"
# Discord Alerts | https://docs.linuxgsm.com/alerts/discord
discordalert="off"
discordwebhook="webhook"
# Slack Alerts | https://docs.linuxgsm.com/alerts/slack
slackalert="off"
slackwebhook="webhook"
# Email Alerts | https://docs.linuxgsm.com/alerts/email
emailalert="off"
email="[email protected]"
emailfrom=""
# IFTTT Alerts | https://docs.linuxgsm.com/alerts/ifttt
iftttalert="off"
ifttttoken="accesstoken"
iftttevent="linuxgsm_alert"
# Mailgun Email Alerts | https://docs.linuxgsm.com/alerts/mailgun
mailgunalert="off"
mailguntoken="accesstoken"
mailgundomain="example.com"
mailgunemailfrom="[email protected]"
mailgunemail="[email protected]"
# Pushbullet Alerts | https://docs.linuxgsm.com/alerts/pushbullet
pushbulletalert="off"
pushbullettoken="accesstoken"
channeltag=""
# Pushover Alerts | https://docs.linuxgsm.com/alerts/pushover
pushoveralert="off"
pushovertoken="accesstoken"
# Telegram Alerts | https://docs.linuxgsm.com/alerts/telegram
# You can add a custom cURL string eg proxy (useful in Russia) or else in "curlcustomstring".
# like a "--socks5 ipaddr:port" for socks5 proxy see more in "curl --help", if you not need
# any custom string in curl - simple ignore this parameter.
telegramalert="off"
telegramtoken="accesstoken"
telegramchatid=""
curlcustomstring=""
## Updating | https://docs.linuxgsm.com/commands/update
updateonstart="off"
## Backup | https://docs.linuxgsm.com/commands/backup
maxbackups="4"
maxbackupdays="30"
stoponbackup="on"
## Logging | https://docs.linuxgsm.com/features/logging
consolelogging="on"
logdays="7"
## Monitor | https://docs.linuxgsm.com/commands/monitor
# Query delay time
querydelay="1"
#### LinuxGSM Advanced Settings ####
# ANSI Colors
ansi="on"
# Message Display Time
sleeptime="0.5"
# Stop Mode | https://docs.linuxgsm.com/steamcmd/stopmode
# 1: tmux kill
# 2: CTRL+c
# 3: quit
# 4: quit 120s
# 5: stop
# 6: q
# 7: exit
# 8: 7 Days to Die
# 9: Gold Source
# 10: Teamspeak 3
stopmode="7"
## Query mode
# 1: session only
# 2: gamedig + gsquery
# 3: gamedig
# 4: gsquery
# 5: tcp
querymode="1"
querytype=""
## Console type
consoleverbose="yes"
consoleinteract="yes"
## SteamCMD Settings
# Server appid
appid="786920"
steamcmdforcewindows="no"
# SteamCMD Branch | https://docs.linuxgsm.com/steamcmd/branch
branch=""
# Master Server | https://docs.linuxgsm.com/steamcmd/steam-master-server
steammaster=""
## LinuxGSM Server Details
# Do not edit
gamename="SCP: Secret Laboratory ServerMod"
engine="unity3d"
glibc="2.27"
#### Directories ####
# Edit with care
## Server Specific Directories
systemdir="${serverfiles}"
executabledir="${systemdir}"
executable="./LocalAdmin"
servercfg="config_gameplay.txt"
servercfgdefault="config_gameplay.txt"
servercfgdir="${HOME}/.config/SCP Secret Laboratory/config/${port}"
servercfgfullpath="${servercfgdir}/${servercfg}"
## Backup Directory
backupdir="${rootdir}/backups"
## Logging Directories
logdir="${rootdir}/log"
gamelogdir="${HOME}/.config/SCP Secret Laboratory/LocalAdminLogs/${port}"
lgsmlogdir="${logdir}/script"
consolelogdir="${logdir}/console"
lgsmlog="${lgsmlogdir}/${selfname}-script.log"
consolelog="${consolelogdir}/${selfname}-console.log"
alertlog="${lgsmlogdir}/${selfname}-alert.log"
postdetailslog="${lgsmlogdir}/${selfname}-postdetails.log"
## Logs Naming
lgsmlogdate="${lgsmlogdir}/${selfname}-script-$(date '+%Y-%m-%d-%H:%M:%S').log"
consolelogdate="${consolelogdir}/${selfname}-console-$(date '+%Y-%m-%d-%H:%M:%S').log"

1
lgsm/config-default/config-lgsm/sdtdserver/_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="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

@ -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="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

@ -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="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

@ -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="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

@ -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="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

@ -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="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

@ -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="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

@ -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="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

@ -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="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

@ -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="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

@ -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="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

@ -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="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

@ -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="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

@ -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="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

@ -131,6 +131,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

@ -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="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

@ -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="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

@ -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="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=""

2
lgsm/data/serverlist.csv

@ -84,6 +84,8 @@ rw,rwserver,Rising World
samp,sampserver,San Andreas Multiplayer samp,sampserver,San Andreas Multiplayer
sb,sbserver,Starbound sb,sbserver,Starbound
sbots,sbotsserver,StickyBots sbots,sbotsserver,StickyBots
scpsl,scpslserver,SCP: Secret Laboratory
scpslsm,scpslsmserver,SCP: Secret Laboratory ServerMod
sdtd,sdtdserver,7 Days to Die sdtd,sdtdserver,7 Days to Die
sfc,sfcserver,SourceForts Classic sfc,sfcserver,SourceForts Classic
sof2,sof2server,Soldier Of Fortune 2: Gold Edition sof2,sof2server,Soldier Of Fortune 2: Gold Edition

Can't render this file because it has a wrong number of fields in line 66.

11
lgsm/functions/alert.sh

@ -189,6 +189,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

@ -14,54 +14,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
) )
@ -74,6 +79,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

11
lgsm/functions/check_deps.sh

@ -365,7 +365,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
@ -438,6 +438,9 @@ fn_deps_build_debian(){
else else
array_deps_required+=( default-jre rng-tools ) array_deps_required+=( default-jre rng-tools )
fi fi
# SCP: Secret Laboratory, SCP: Secret Laboratory ServerMod
elif [ "${shortname}" == "scpsl" ]||[ "${shortname}" == "scpslsm" ]; then
array_deps_required+=( mono-complete )
# Sven Co-op # Sven Co-op
elif [ "${shortname}" == "sven" ]; then elif [ "${shortname}" == "sven" ]; then
array_deps_required+=( libssl1.1:i386 zlib1g:i386 ) array_deps_required+=( libssl1.1:i386 zlib1g:i386 )
@ -462,6 +465,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
@ -577,6 +583,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

@ -156,6 +156,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

@ -59,6 +59,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(){
@ -570,6 +575,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

@ -14,16 +14,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"
@ -249,8 +239,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

64
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
@ -1569,6 +1545,26 @@ fn_info_config_vintagestory(){
fi fi
} }
fn_info_config_scpsl(){
if [ -f "${servercfgfullpath}" ]; then
servername=$(sed -nr 's/^server_name: (.*)$/\1/p' "${servercfgfullpath}")
maxplayers=$(sed -nr 's/^max_players: (.*)$/\1/p' "${servercfgfullpath}")
configip=$(sed -nr 's/^ipv4_bind_ip: (.*)$/\1/p' "${servercfgfullpath}")
tickrate=$(sed -nr 's/^server_tickrate: (.*)$/\1/p' "${servercfgfullpath}")
adminpassword=$(sed -nr 's/^administrator_query_password: (.*)$/\1/p' "${servercfgfullpath}")
if [ "${adminpassword}" == "none" ]; then
adminpassword="NOT SET"
fi
else
servername=${servername:-"NOT SET"}
maxplayers=${maxplayers:-"0"}
configip=${configip:-"0.0.0.0"}
tickrate=${tickrate:-"NOT SET"}
adminpassword=${adminpassword:-"NOT SET"}
fi
}
if [ "${shortname}" == "ac" ]; then if [ "${shortname}" == "ac" ]; then
fn_info_config_assettocorsa fn_info_config_assettocorsa
elif [ "${shortname}" == "ark" ]; then elif [ "${shortname}" == "ark" ]; then
@ -1603,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
@ -1673,6 +1667,8 @@ elif [ "${engine}" == "unreal3" ]; then
fn_info_config_unreal3 fn_info_config_unreal3
elif [ "${shortname}" == "ut" ]; then elif [ "${shortname}" == "ut" ]; then
fn_info_config_ut fn_info_config_ut
elif [ "${shortname}" == "scpsl" ]||[ "${shortname}" == "scpslsm" ]; then
fn_info_config_scpsl
elif [ "${shortname}" == "sdtd" ]; then elif [ "${shortname}" == "sdtd" ]; then
fn_info_config_sdtd fn_info_config_sdtd
elif [ "${shortname}" == "wet" ]; then elif [ "${shortname}" == "wet" ]; then

13
lgsm/functions/info_messages.sh

@ -584,7 +584,7 @@ fn_info_message_ports(){
fi fi
done done
# engines/games that require editing the parms. # engines/games that require editing the parms.
local ports_edit_array=( "Avorion" "col" "goldsrc" "Factorio" "Hurtworld" "iw3.0" "ioquake3" "qfusion" "Rust" "Soldat" "spark" "source" "starbound" "unreal4" "realvirtuality" "Unturned" ) local ports_edit_array=( "Avorion" "col" "goldsrc" "Factorio" "Hurtworld" "iw3.0" "ioquake3" "qfusion" "Rust" "scpsl" "scpslsm" "Soldat" "spark" "source" "starbound" "unreal4" "realvirtuality" "Unturned" )
for port_edit in "${ports_edit_array[@]}"; do for port_edit in "${ports_edit_array[@]}"; do
if [ "${engine}" == "${port_edit}" ]||[ "${gamename}" == "${port_edit}" ]||[ "${shortname}" == "${port_edit}" ]; then if [ "${engine}" == "${port_edit}" ]||[ "${gamename}" == "${port_edit}" ]||[ "${shortname}" == "${port_edit}" ]; then
parmslocation="${configdirserver}" parmslocation="${configdirserver}"
@ -1465,6 +1465,15 @@ fn_info_message_vintagestory(){
} | column -s $'\t' -t } | column -s $'\t' -t
} }
fn_info_message_scpsl(){
echo -e "netstat -atunp | grep SCPSL"
echo -e ""
{
echo -e "${lightblue}DESCRIPTION\tDIRECTION\tPORT\tPROTOCOL${default}"
echo -e "> Game\tINBOUND\t${port}\tudp"
} | column -s $'\t' -t
}
fn_info_message_select_engine(){ fn_info_message_select_engine(){
# Display details depending on game or engine. # Display details depending on game or engine.
if [ "${shortname}" == "ac" ]; then if [ "${shortname}" == "ac" ]; then
@ -1537,6 +1546,8 @@ fn_info_message_select_engine(){
fn_info_message_quakelive fn_info_message_quakelive
elif [ "${shortname}" == "samp" ]; then elif [ "${shortname}" == "samp" ]; then
fn_info_message_samp fn_info_message_samp
elif [ "${shortname}" == "scpsl" ]||[ "${shortname}" == "scpslsm" ]; then
fn_info_message_scpsl
elif [ "${shortname}" == "sdtd" ]; then elif [ "${shortname}" == "sdtd" ]; then
fn_info_message_sdtd fn_info_message_sdtd
elif [ "${shortname}" == "squad" ]; then elif [ "${shortname}" == "squad" ]; then

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

Loading…
Cancel
Save