Browse Source

Merge pull request #990 from dgibbs64/development

Development to master
pull/996/head
Daniel Gibbs 9 years ago
committed by GitHub
parent
commit
d43c5f02e8
  1. 1
      7DaysToDie/sdtdserver
  2. 1
      ARKSurvivalEvolved/arkserver
  3. 1
      Arma3/arma3server
  4. 1
      BlackMesa/bmdmserver
  5. 1
      BladeSymphony/bsserver
  6. 1
      BrainBread2/bb2server
  7. 1
      CodenameCURE/ccserver
  8. 1
      CounterStrike/csserver
  9. 1
      CounterStrikeConditionZero/csczserver
  10. 1
      CounterStrikeGlobalOffensive/csgoserver
  11. 1
      CounterStrikeSource/cssserver
  12. 1
      DayOfDefeat/dodserver
  13. 1
      DayOfDefeatSource/dodsserver
  14. 1
      DayOfInfamy/doiserver
  15. 1
      DeathmatchClassic/dmcserver
  16. 1
      DontStarveTogether/dstserver
  17. 1
      DoubleActionBoogaloo/dabserver
  18. 1
      FistfulOfFrags/fofserver
  19. 3
      GarrysMod/gmodserver
  20. 1
      GoldenEyeSource/gesserver
  21. 1
      HalfLife2Deathmatch/hl2dmserver
  22. 1
      HalfLifeDeathmatch/hldmserver
  23. 1
      HalfLifeDeathmatchSource/hldmsserver
  24. 4
      Hurtworld/hwserver
  25. BIN
      Insurgency/dependencies/libc.so.6
  26. BIN
      Insurgency/dependencies/libm.so.6
  27. BIN
      Insurgency/dependencies/librt.so.1
  28. 1
      Insurgency/insserver
  29. 1
      JustCause2/jc2server
  30. 1
      KillingFloor/kfserver
  31. 1
      Left4Dead/l4dserver
  32. 1
      Left4Dead2/l4d2server
  33. 1
      Mumble/mumbleserver
  34. 1
      NS2Combat/ns2cserver
  35. 1
      NaturalSelection2/ns2server
  36. 1
      NoMoreRoomInHell/nmrihserver
  37. 1
      OpposingForce/opforserver
  38. 1
      PiratesVikingandKnightsII/pvkiiserver
  39. 1
      ProjectZomboid/pzserver
  40. 1
      QuakeLive/qlserver
  41. 1
      RedOrchestra/roserver
  42. 1
      Ricochet/ricochetserver
  43. 1
      Rust/rustserver
  44. 1
      SeriousSam3BFE/ss3sserver
  45. 1
      Starbound/sbserver
  46. 1
      SvenCoop/svencoopserver
  47. 1
      TeamFortress2/tf2server
  48. 1
      TeamFortressClassic/tfcserver
  49. 1
      TeamSpeak3/ts3server
  50. 1
      Teeworlds/twserver
  51. 1
      Terraria/terrariaserver
  52. 1
      UnrealTournament2004/ut2k4server
  53. 5
      UnrealTournament99/ut99server
  54. 10
      lgsm/functions/check.sh
  55. 26
      lgsm/functions/check_deps.sh
  56. 8
      lgsm/functions/check_ip.sh
  57. 21
      lgsm/functions/check_tmux.sh
  58. 96
      lgsm/functions/command_dev_detect_deps.sh
  59. 31
      lgsm/functions/command_dev_detect_glibc.sh
  60. 3
      lgsm/functions/core_dl.sh
  61. 1
      lgsm/functions/core_exit.sh
  62. 6
      lgsm/functions/core_functions.sh
  63. 14
      lgsm/functions/core_getopt.sh
  64. 18
      lgsm/functions/fix_glibc.sh
  65. 6
      lgsm/functions/info_distro.sh
  66. BIN
      lgsm/lib/ubuntu12.04/i386/libpthread.so.0
  67. 12
      tests/tests_jc2server.sh
  68. 13
      tests/tests_ts3server.sh

1
7DaysToDie/sdtdserver

@ -61,6 +61,7 @@ selfname="$(basename $(readlink -f "${BASH_SOURCE[0]}"))"
lockselfname=".${servicename}.lock"
lgsmdir="${rootdir}/lgsm"
functionsdir="${lgsmdir}/functions"
libdir="${lgsmdir}/lib"
filesdir="${rootdir}/serverfiles"
systemdir="${filesdir}"
executabledir="${filesdir}"

1
ARKSurvivalEvolved/arkserver

@ -66,6 +66,7 @@ selfname="$(basename $(readlink -f "${BASH_SOURCE[0]}"))"
lockselfname=".${servicename}.lock"
lgsmdir="${rootdir}/lgsm"
functionsdir="${lgsmdir}/functions"
libdir="${lgsmdir}/lib"
filesdir="${rootdir}/serverfiles"
systemdir="${filesdir}/ShooterGame"
executabledir="${systemdir}/Binaries/Linux"

1
Arma3/arma3server

@ -80,6 +80,7 @@ selfname="$(basename $(readlink -f "${BASH_SOURCE[0]}"))"
lockselfname=".${servicename}.lock"
lgsmdir="${rootdir}/lgsm"
functionsdir="${lgsmdir}/functions"
libdir="${lgsmdir}/lib"
filesdir="${rootdir}/serverfiles"
systemdir="${filesdir}"
executabledir="${filesdir}"

1
BlackMesa/bmdmserver

@ -71,6 +71,7 @@ selfname="$(basename $(readlink -f "${BASH_SOURCE[0]}"))"
lockselfname=".${servicename}.lock"
lgsmdir="${rootdir}/lgsm"
functionsdir="${lgsmdir}/functions"
libdir="${lgsmdir}/lib"
filesdir="${rootdir}/serverfiles"
systemdir="${filesdir}/bms"
executabledir="${filesdir}"

1
BladeSymphony/bsserver

@ -66,6 +66,7 @@ selfname="$(basename $(readlink -f "${BASH_SOURCE[0]}"))"
lockselfname=".${servicename}.lock"
lgsmdir="${rootdir}/lgsm"
functionsdir="${lgsmdir}/functions"
libdir="${lgsmdir}/lib"
filesdir="${rootdir}/serverfiles"
systemdir="${filesdir}/berimbau"
executabledir="${filesdir}"

1
BrainBread2/bb2server

@ -71,6 +71,7 @@ selfname="$(basename $(readlink -f "${BASH_SOURCE[0]}"))"
lockselfname=".${servicename}.lock"
lgsmdir="${rootdir}/lgsm"
functionsdir="${lgsmdir}/functions"
libdir="${lgsmdir}/lib"
filesdir="${rootdir}/serverfiles"
systemdir="${filesdir}/brainbread2"
executabledir="${filesdir}"

1
CodenameCURE/ccserver

@ -66,6 +66,7 @@ selfname="$(basename $(readlink -f "${BASH_SOURCE[0]}"))"
lockselfname=".${servicename}.lock"
lgsmdir="${rootdir}/lgsm"
functionsdir="${lgsmdir}/functions"
libdir="${lgsmdir}/lib"
filesdir="${rootdir}/serverfiles"
systemdir="${filesdir}/cure"
executabledir="${filesdir}"

1
CounterStrike/csserver

@ -66,6 +66,7 @@ selfname="$(basename $(readlink -f "${BASH_SOURCE[0]}"))"
lockselfname=".${servicename}.lock"
lgsmdir="${rootdir}/lgsm"
functionsdir="${lgsmdir}/functions"
libdir="${lgsmdir}/lib"
filesdir="${rootdir}/serverfiles"
systemdir="${filesdir}/cstrike"
executabledir="${filesdir}"

1
CounterStrikeConditionZero/csczserver

@ -66,6 +66,7 @@ selfname="$(basename $(readlink -f "${BASH_SOURCE[0]}"))"
lockselfname=".${servicename}.lock"
lgsmdir="${rootdir}/lgsm"
functionsdir="${lgsmdir}/functions"
libdir="${lgsmdir}/lib"
filesdir="${rootdir}/serverfiles"
systemdir="${filesdir}/czero"
executabledir="${filesdir}"

1
CounterStrikeGlobalOffensive/csgoserver

@ -94,6 +94,7 @@ selfname="$(basename $(readlink -f "${BASH_SOURCE[0]}"))"
lockselfname=".${servicename}.lock"
lgsmdir="${rootdir}/lgsm"
functionsdir="${lgsmdir}/functions"
libdir="${lgsmdir}/lib"
filesdir="${rootdir}/serverfiles"
systemdir="${filesdir}/csgo"
executabledir="${filesdir}"

1
CounterStrikeSource/cssserver

@ -66,6 +66,7 @@ selfname="$(basename $(readlink -f "${BASH_SOURCE[0]}"))"
lockselfname=".${servicename}.lock"
lgsmdir="${rootdir}/lgsm"
functionsdir="${lgsmdir}/functions"
libdir="${lgsmdir}/lib"
filesdir="${rootdir}/serverfiles"
systemdir="${filesdir}/cstrike"
executabledir="${filesdir}"

1
DayOfDefeat/dodserver

@ -66,6 +66,7 @@ selfname="$(basename $(readlink -f "${BASH_SOURCE[0]}"))"
lockselfname=".${servicename}.lock"
lgsmdir="${rootdir}/lgsm"
functionsdir="${lgsmdir}/functions"
libdir="${lgsmdir}/lib"
filesdir="${rootdir}/serverfiles"
systemdir="${filesdir}/dod"
executabledir="${filesdir}"

1
DayOfDefeatSource/dodsserver

@ -66,6 +66,7 @@ selfname="$(basename $(readlink -f "${BASH_SOURCE[0]}"))"
lockselfname=".${servicename}.lock"
lgsmdir="${rootdir}/lgsm"
functionsdir="${lgsmdir}/functions"
libdir="${lgsmdir}/lib"
filesdir="${rootdir}/serverfiles"
systemdir="${filesdir}/dod"
executabledir="${filesdir}"

1
DayOfInfamy/doiserver

@ -68,6 +68,7 @@ selfname="$(basename $(readlink -f "${BASH_SOURCE[0]}"))"
lockselfname=".${servicename}.lock"
lgsmdir="${rootdir}/lgsm"
functionsdir="${lgsmdir}/functions"
libdir="${lgsmdir}/lib"
filesdir="${rootdir}/serverfiles"
systemdir="${filesdir}/doi"
executabledir="${filesdir}"

1
DeathmatchClassic/dmcserver

@ -66,6 +66,7 @@ selfname="$(basename $(readlink -f "${BASH_SOURCE[0]}"))"
lockselfname=".${servicename}.lock"
lgsmdir="${rootdir}/lgsm"
functionsdir="${lgsmdir}/functions"
libdir="${lgsmdir}/lib"
filesdir="${rootdir}/serverfiles"
systemdir="${filesdir}/dmc"
executabledir="${filesdir}"

1
DontStarveTogether/dstserver

@ -64,6 +64,7 @@ selfname="$(basename $(readlink -f "${BASH_SOURCE[0]}"))"
lockselfname=".${servicename}.lock"
lgsmdir="${rootdir}/lgsm"
functionsdir="${lgsmdir}/functions"
libdir="${lgsmdir}/lib"
filesdir="${rootdir}/serverfiles"
systemdir="${filesdir}"
executabledir="${filesdir}/bin"

1
DoubleActionBoogaloo/dabserver

@ -66,6 +66,7 @@ selfname="$(basename $(readlink -f "${BASH_SOURCE[0]}"))"
lockselfname=".${servicename}.lock"
lgsmdir="${rootdir}/lgsm"
functionsdir="${lgsmdir}/functions"
libdir="${lgsmdir}/lib"
filesdir="${rootdir}/serverfiles"
systemdir="${filesdir}/dab"
executabledir="${filesdir}"

1
FistfulOfFrags/fofserver

@ -66,6 +66,7 @@ selfname="$(basename $(readlink -f "${BASH_SOURCE[0]}"))"
lockselfname=".${servicename}.lock"
lgsmdir="${rootdir}/lgsm"
functionsdir="${lgsmdir}/functions"
libdir="${lgsmdir}/lib"
filesdir="${rootdir}/serverfiles"
systemdir="${filesdir}/fof"
executabledir="${filesdir}"

3
GarrysMod/gmodserver

@ -46,8 +46,8 @@ maxplayers="16"
port="27015"
sourcetvport="27020"
clientport="27005"
ip="0.0.0.0"
tickrate="66"
ip="0.0.0.0"
updateonstart="off"
# Custom Start Parameters
@ -87,6 +87,7 @@ selfname="$(basename $(readlink -f "${BASH_SOURCE[0]}"))"
lockselfname=".${servicename}.lock"
lgsmdir="${rootdir}/lgsm"
functionsdir="${lgsmdir}/functions"
libdir="${lgsmdir}/lib"
filesdir="${rootdir}/serverfiles"
systemdir="${filesdir}/garrysmod"
addonsdir="${systemdir}/addons"

1
GoldenEyeSource/gesserver

@ -67,6 +67,7 @@ selfname="$(basename $(readlink -f "${BASH_SOURCE[0]}"))"
lockselfname=".${servicename}.lock"
lgsmdir="${rootdir}/lgsm"
functionsdir="${lgsmdir}/functions"
libdir="${lgsmdir}/lib"
filesdir="${rootdir}/serverfiles"
systemdir="${filesdir}/gesource"
executabledir="${filesdir}"

1
HalfLife2Deathmatch/hl2dmserver

@ -66,6 +66,7 @@ selfname="$(basename $(readlink -f "${BASH_SOURCE[0]}"))"
lockselfname=".${servicename}.lock"
lgsmdir="${rootdir}/lgsm"
functionsdir="${lgsmdir}/functions"
libdir="${lgsmdir}/lib"
filesdir="${rootdir}/serverfiles"
systemdir="${filesdir}/hl2mp"
executabledir="${filesdir}"

1
HalfLifeDeathmatch/hldmserver

@ -65,6 +65,7 @@ selfname="$(basename $(readlink -f "${BASH_SOURCE[0]}"))"
lockselfname=".${servicename}.lock"
lgsmdir="${rootdir}/lgsm"
functionsdir="${lgsmdir}/functions"
libdir="${lgsmdir}/lib"
filesdir="${rootdir}/serverfiles"
systemdir="${filesdir}/valve"
executabledir="${filesdir}"

1
HalfLifeDeathmatchSource/hldmsserver

@ -66,6 +66,7 @@ selfname="$(basename $(readlink -f "${BASH_SOURCE[0]}"))"
lockselfname=".${servicename}.lock"
lgsmdir="${rootdir}/lgsm"
functionsdir="${lgsmdir}/functions"
libdir="${lgsmdir}/lib"
filesdir="${rootdir}/serverfiles"
systemdir="${filesdir}/hl1mp"
executabledir="${filesdir}"

4
Hurtworld/hwserver

@ -31,8 +31,9 @@ steamuser="anonymous"
steampass=""
# Server settings
servername="Hurtworld LGSM Server"
ip="0.0.0.0"
updateonstart="off"
servername="Hurtworld LGSM Server"
port="12871"
queryport="12881"
maxplayers="20"
@ -79,6 +80,7 @@ selfname=$(basename $(readlink -f "${BASH_SOURCE[0]}"))
lockselfname=".${servicename}.lock"
lgsmdir="${rootdir}/lgsm"
functionsdir="${lgsmdir}/functions"
libdir="${lgsmdir}/lib"
filesdir="${rootdir}/serverfiles"
systemdir="${filesdir}"
executabledir="${filesdir}"

BIN
Insurgency/dependencies/libc.so.6

Binary file not shown.

BIN
Insurgency/dependencies/libm.so.6

Binary file not shown.

BIN
Insurgency/dependencies/librt.so.1

Binary file not shown.

1
Insurgency/insserver

@ -68,6 +68,7 @@ selfname="$(basename $(readlink -f "${BASH_SOURCE[0]}"))"
lockselfname=".${servicename}.lock"
lgsmdir="${rootdir}/lgsm"
functionsdir="${lgsmdir}/functions"
libdir="${lgsmdir}/lib"
filesdir="${rootdir}/serverfiles"
systemdir="${filesdir}/insurgency"
executabledir="${filesdir}"

1
JustCause2/jc2server

@ -30,6 +30,7 @@ steamuser="anonymous"
steampass=""
# Start Variables
ip="0.0.0.0"
updateonstart="off"
fn_parms(){

1
KillingFloor/kfserver

@ -65,6 +65,7 @@ selfname="$(basename $(readlink -f "${BASH_SOURCE[0]}"))"
lockselfname=".${servicename}.lock"
lgsmdir="${rootdir}/lgsm"
functionsdir="${lgsmdir}/functions"
libdir="${lgsmdir}/lib"
filesdir="${rootdir}/serverfiles"
systemdir="${filesdir}/System"
executabledir="${systemdir}"

1
Left4Dead/l4dserver

@ -66,6 +66,7 @@ selfname="$(basename $(readlink -f "${BASH_SOURCE[0]}"))"
lockselfname=".${servicename}.lock"
lgsmdir="${rootdir}/lgsm"
functionsdir="${lgsmdir}/functions"
libdir="${lgsmdir}/lib"
filesdir="${rootdir}/serverfiles"
systemdir="${filesdir}/left4dead"
executabledir="${filesdir}"

1
Left4Dead2/l4d2server

@ -65,6 +65,7 @@ selfname="$(basename $(readlink -f "${BASH_SOURCE[0]}"))"
lockselfname=".${servicename}.lock"
lgsmdir="${rootdir}/lgsm"
functionsdir="${lgsmdir}/functions"
libdir="${lgsmdir}/lib"
filesdir="${rootdir}/serverfiles"
systemdir="${filesdir}/left4dead2"
executabledir="${filesdir}"

1
Mumble/mumbleserver

@ -53,6 +53,7 @@ selfname="$(basename $(readlink -f "${BASH_SOURCE[0]}"))"
lockselfname=".${servicename}.lock"
lgsmdir="${rootdir}/lgsm"
functionsdir="${lgsmdir}/functions"
libdir="${lgsmdir}/lib"
filesdir="${rootdir}/serverfiles"
systemdir="${filesdir}"
executabledir="${filesdir}"

1
NS2Combat/ns2cserver

@ -73,6 +73,7 @@ selfname="$(basename $(readlink -f "${BASH_SOURCE[0]}"))"
lockselfname=".${servicename}.lock"
lgsmdir="${rootdir}/lgsm"
functionsdir="${lgsmdir}/functions"
libdir="${lgsmdir}/lib"
filesdir="${rootdir}/serverfiles"
systemdir="${filesdir}"
executabledir="${filesdir}/ia32"

1
NaturalSelection2/ns2server

@ -78,6 +78,7 @@ selfname="$(basename $(readlink -f "${BASH_SOURCE[0]}"))"
lockselfname=".${servicename}.lock"
lgsmdir="${rootdir}/lgsm"
functionsdir="${lgsmdir}/functions"
libdir="${lgsmdir}/lib"
filesdir="${rootdir}/serverfiles"
systemdir="${filesdir}"
executabledir="${filesdir}"

1
NoMoreRoomInHell/nmrihserver

@ -71,6 +71,7 @@ selfname="$(basename $(readlink -f "${BASH_SOURCE[0]}"))"
lockselfname=".${servicename}.lock"
lgsmdir="${rootdir}/lgsm"
functionsdir="${lgsmdir}/functions"
libdir="${lgsmdir}/lib"
filesdir="${rootdir}/serverfiles"
systemdir="${filesdir}/nmrih"
executabledir="${filesdir}"

1
OpposingForce/opforserver

@ -66,6 +66,7 @@ selfname="$(basename $(readlink -f "${BASH_SOURCE[0]}"))"
lockselfname=".${servicename}.lock"
lgsmdir="${rootdir}/lgsm"
functionsdir="${lgsmdir}/functions"
libdir="${lgsmdir}/lib"
filesdir="${rootdir}/serverfiles"
systemdir="${filesdir}/gearbox"
executabledir="${filesdir}"

1
PiratesVikingandKnightsII/pvkiiserver

@ -66,6 +66,7 @@ selfname="$(basename $(readlink -f "${BASH_SOURCE[0]}"))"
lockselfname=".${servicename}.lock"
lgsmdir="${rootdir}/lgsm"
functionsdir="${lgsmdir}/functions"
libdir="${lgsmdir}/lib"
filesdir="${rootdir}/serverfiles"
systemdir="${filesdir}/pvkii"
executabledir="${filesdir}"

1
ProjectZomboid/pzserver

@ -65,6 +65,7 @@ selfname="$(basename $(readlink -f "${BASH_SOURCE[0]}"))"
lockselfname=".${servicename}.lock"
lgsmdir="${rootdir}/lgsm"
functionsdir="${lgsmdir}/functions"
libdir="${lgsmdir}/lib"
filesdir="${rootdir}/serverfiles"
systemdir="${filesdir}"
executabledir="${filesdir}"

1
QuakeLive/qlserver

@ -69,6 +69,7 @@ selfname="$(basename $(readlink -f "${BASH_SOURCE[0]}"))"
lockselfname=".${servicename}.lock"
lgsmdir="${rootdir}/lgsm"
functionsdir="${lgsmdir}/functions"
libdir="${lgsmdir}/lib"
filesdir="${rootdir}/serverfiles"
systemdir="${filesdir}"
executabledir="${filesdir}"

1
RedOrchestra/roserver

@ -61,6 +61,7 @@ selfname="$(basename $(readlink -f "${BASH_SOURCE[0]}"))"
lockselfname=".${servicename}.lock"
lgsmdir="${rootdir}/lgsm"
functionsdir="${lgsmdir}/functions"
libdir="${lgsmdir}/lib"
filesdir="${rootdir}/serverfiles"
systemdir="${filesdir}/system"
executabledir="${systemdir}"

1
Ricochet/ricochetserver

@ -66,6 +66,7 @@ selfname="$(basename $(readlink -f "${BASH_SOURCE[0]}"))"
lockselfname=".${servicename}.lock"
lgsmdir="${rootdir}/lgsm"
functionsdir="${lgsmdir}/functions"
libdir="${lgsmdir}/lib"
filesdir="${rootdir}/serverfiles"
systemdir="${filesdir}/ricochet"
executabledir="${filesdir}"

1
Rust/rustserver

@ -83,6 +83,7 @@ selfname=$(basename $(readlink -f "${BASH_SOURCE[0]}"))
lockselfname=".${servicename}.lock"
lgsmdir="${rootdir}/lgsm"
functionsdir="${lgsmdir}/functions"
libdir="${lgsmdir}/lib"
filesdir="${rootdir}/serverfiles"
systemdir="${filesdir}"
executabledir="${filesdir}"

1
SeriousSam3BFE/ss3sserver

@ -61,6 +61,7 @@ selfname="$(basename $(readlink -f "${BASH_SOURCE[0]}"))"
lockselfname=".${servicename}.lock"
lgsmdir="${rootdir}/lgsm"
functionsdir="${lgsmdir}/functions"
libdir="${lgsmdir}/lib"
filesdir="${rootdir}/serverfiles"
systemdir="${filesdir}/Bin"
executable="./runSam3_DedicatedServer.sh"

1
Starbound/sbserver

@ -60,6 +60,7 @@ selfname="$(basename $(readlink -f "${BASH_SOURCE[0]}"))"
lockselfname=".${servicename}.lock"
lgsmdir="${rootdir}/lgsm"
functionsdir="${lgsmdir}/functions"
libdir="${lgsmdir}/lib"
filesdir="${rootdir}/serverfiles"
systemdir="${filesdir}"
executabledir="${filesdir}/linux"

1
SvenCoop/svencoopserver

@ -65,6 +65,7 @@ selfname="$(basename $(readlink -f "${BASH_SOURCE[0]}"))"
lockselfname=".${servicename}.lock"
lgsmdir="${rootdir}/lgsm"
functionsdir="${lgsmdir}/functions"
libdir="${lgsmdir}/lib"
filesdir="${rootdir}/serverfiles"
systemdir="${filesdir}/svencoop"
executabledir="${filesdir}"

1
TeamFortress2/tf2server

@ -71,6 +71,7 @@ selfname="$(basename $(readlink -f "${BASH_SOURCE[0]}"))"
lockselfname=".${servicename}.lock"
lgsmdir="${rootdir}/lgsm"
functionsdir="${lgsmdir}/functions"
libdir="${lgsmdir}/lib"
filesdir="${rootdir}/serverfiles"
systemdir="${filesdir}/tf"
executabledir="${filesdir}"

1
TeamFortressClassic/tfcserver

@ -66,6 +66,7 @@ selfname="$(basename $(readlink -f "${BASH_SOURCE[0]}"))"
lockselfname=".${servicename}.lock"
lgsmdir="${rootdir}/lgsm"
functionsdir="${lgsmdir}/functions"
libdir="${lgsmdir}/lib"
filesdir="${rootdir}/serverfiles"
systemdir="${filesdir}/tfc"
executabledir="${filesdir}"

1
TeamSpeak3/ts3server

@ -39,6 +39,7 @@ selfname="$(basename $(readlink -f "${BASH_SOURCE[0]}"))"
lockselfname=".${servicename}.lock"
lgsmdir="${rootdir}/lgsm"
functionsdir="${lgsmdir}/functions"
libdir="${lgsmdir}/lib"
filesdir="${rootdir}/serverfiles"
systemdir="${filesdir}"
executabledir="${filesdir}"

1
Teeworlds/twserver

@ -61,6 +61,7 @@ selfname="$(basename $(readlink -f "${BASH_SOURCE[0]}"))"
lockselfname=".${servicename}.lock"
lgsmdir="${rootdir}/lgsm"
functionsdir="${lgsmdir}/functions"
libdir="${lgsmdir}/lib"
filesdir="${rootdir}/serverfiles"
systemdir="${filesdir}"
executabledir="${filesdir}"

1
Terraria/terrariaserver

@ -61,6 +61,7 @@ selfname="$(basename $(readlink -f "${BASH_SOURCE[0]}"))"
lockselfname=".${servicename}.lock"
lgsmdir="${rootdir}/lgsm"
functionsdir="${lgsmdir}/functions"
libdir="${lgsmdir}/lib"
filesdir="${rootdir}/serverfiles"
systemdir="${filesdir}"
executabledir="${filesdir}"

1
UnrealTournament2004/ut2k4server

@ -44,6 +44,7 @@ selfname="$(basename $(readlink -f "${BASH_SOURCE[0]}"))"
lockselfname=".${servicename}.lock"
lgsmdir="${rootdir}/lgsm"
functionsdir="${lgsmdir}/functions"
libdir="${lgsmdir}/lib"
filesdir="${rootdir}/serverfiles"
systemdir="${filesdir}/System"
executabledir="${systemdir}"

5
UnrealTournament99/ut99server

@ -20,7 +20,7 @@ version="210516"
emailalert="off"
email="[email protected]"
# Pushbullet
# Pushbullet
# https://www.pushbullet.com/#settings
pushbulletalert="off"
pushbullettoken="accesstoken"
@ -53,6 +53,7 @@ selfname="$(basename $(readlink -f "${BASH_SOURCE[0]}"))"
lockselfname=".${servicename}.lock"
lgsmdir="${rootdir}/lgsm"
functionsdir="${lgsmdir}/functions"
libdir="${lgsmdir}/lib"
filesdir="${rootdir}/serverfiles"
systemdir="${filesdir}/System"
executabledir="${systemdir}"
@ -112,7 +113,7 @@ if [ ! -f "${filedir}/${filename}" ]; then
exit 1
else
echo -e "\e[0;32mOK\e[0m"
fi
fi
else
echo -e "\e[0;31mFAIL\e[0m\n"
echo "Curl is not installed!"

10
lgsm/functions/check.sh

@ -13,7 +13,7 @@ local commandname="CHECK"
check_root.sh
check_permissions.sh
if [ "${function_selfname}" != "command_install.sh" ] && [ "${function_selfname}" != "command_update_functions.sh" ]; then
if [ "${function_selfname}" != "command_install.sh" ]&&[ "${function_selfname}" != "command_update_functions.sh" ]; then
check_system_dir.sh
fi
@ -59,14 +59,6 @@ do
fi
done
local allowed_commands_array=( command_console.sh command_start.sh )
for allowed_command in "${allowed_commands_array[@]}"
do
if [ "${allowed_command}" == "${function_selfname}" ]||[ "${gamename}" != "TeamSpeak 3" ]; then
check_tmux.sh
fi
done
local allowed_commands_array=( command_console.sh command_debug.sh command_details.sh command_monitor.sh command_start.sh command_stop.sh )
for allowed_command in "${allowed_commands_array[@]}"
do

26
lgsm/functions/check_deps.sh

@ -18,10 +18,10 @@ fn_deps_detector(){
if [ "${depstatus}" == "0" ]; then
missingdep=0
if [ "${function_selfname}" == "command_install.sh" ]; then
if [ "${tmuxcheck}" != "1" ]; then
if [ "${tmuxcheck}" == "1" ]; then
# Added for users compiling tmux from source to bypass rpm check
echo -e "${green}tmux${default}"
tmuxcheck=1
unset tmuxcheck
fi
echo -e "${green}${deptocheck}${default}"
sleep 0.5
@ -138,19 +138,19 @@ if [ -n "$(command -v dpkg-query)" ]; then
array_deps_missing=()
# LGSM requirements
array_deps_required=( curl ca-certificates file bsdmainutils util-linux python bzip2 gzip )
array_deps_required=( curl wget ca-certificates file bsdmainutils util-linux python bzip2 gzip )
# All servers except ts3 require tmux
if [ "${executable}" != "./ts3server_startscript.sh" ]; then
if [ "$(command -v tmux)" ]||[ "$(which tmux)" ]||[ -f "/usr/bin/tmux" ]||[ -f "/bin/tmux" ]; then
: # Added for users compiling tmux from source to bypass rpm check
if [ "$(command -v tmux)" ]||[ "$(which tmux 2>/dev/null)" ]||[ -f "/usr/bin/tmux" ]||[ -f "/bin/tmux" ]; then
tmuxcheck=1 # Added for users compiling tmux from source to bypass rpm check
else
array_deps_required+=( tmux )
fi
fi
# All servers except ts3 & mumble require libstdc++6, lib32gcc1
if [ "${executable}" != "./ts3server_startscript.sh" ]||[ "${executable}" != "./murmur.x86" ]; then
if [ "${gamename}" != "TeamSpeak 3" ]||[ "${gamename}" != "Mumble" ]; then
if [ "${arch}" == "x86_64" ]; then
array_deps_required+=( lib32gcc1 libstdc++6:i386 )
else
@ -168,7 +168,11 @@ if [ -n "$(command -v dpkg-query)" ]; then
array_deps_required+=( telnet expect )
# No More Room in Hell, Counter Strike: Source and Garry's Mod
elif [ "${gamename}" == "No More Room in Hell" ]||[ "${gamename}" == "Counter Strike: Source" ]||[ "${gamename}" == "Garry's Mod" ]; then
array_deps_required+=( lib32tinfo5 )
if [ "${arch}" == "x86_64" ]; then
array_deps_required+=( lib32tinfo5 )
else
array_deps_required+=( libtinfo5 )
fi
# Brainbread 2 and Don't Starve Together
elif [ "${gamename}" == "Brainbread 2" ]||[ "${gamename}" == "Don't Starve Together" ]; then
array_deps_required+=( libcurl4-gnutls-dev:i386 )
@ -194,15 +198,15 @@ elif [ -n "$(command -v yum)" ]; then
# LGSM requirements
if [ "${distroversion}" == "6" ]; then
array_deps_required=( curl util-linux-ng python file gzip bzip2 )
array_deps_required=( curl wget util-linux-ng python file gzip bzip2 )
else
array_deps_required=( curl util-linux python file gzip bzip2 )
array_deps_required=( curl wget util-linux python file gzip bzip2 )
fi
# All servers except ts3 require tmux
if [ "${executable}" != "./ts3server_startscript.sh" ]; then
if [ "$(command -v tmux)" ]||[ "$(which tmux)" ]||[ -f "/usr/bin/tmux" ]||[ -f "/bin/tmux" ]; then
: # Added for users compiling tmux from source to bypass rpm check
if [ "$(command -v tmux)" ]||[ "$(which tmux 2>/dev/null)" ]||[ -f "/usr/bin/tmux" ]||[ -f "/bin/tmux" ]; then
tmuxcheck=1 # Added for users compiling tmux from source to bypass rpm check
else
array_deps_required+=( tmux )
fi

8
lgsm/functions/check_ip.sh

@ -19,9 +19,11 @@ if [ "${gamename}" != "TeamSpeak 3" ]; then
if [ "${ip}" == "0.0.0.0" ]||[ "${ip}" == "" ]; then
if [ "${getipwc}" -ge "2" ]; then
fn_print_dots ""
sleep 0.5
fn_print_fail "Multiple active network interfaces found.\n\n"
fn_print_dots "Check IP"
sleep 1
fn_print_fail "Check IP: Multiple active network interfaces found."
sleep 1
echo -en "\n"
fn_print_infomation "Specify the IP you want to use within the ${selfname} script.\n"
echo -en "Set ip=\"0.0.0.0\" to one of the following:\n"
echo -en "${getip}\n"

21
lgsm/functions/check_tmux.sh

@ -1,21 +0,0 @@
#!/bin/bash
# LGSM check_tmux.sh function
# Author: Daniel Gibbs
# Website: https://gameservermanagers.com
# Description: Checks if tmux is installed as too many users do not RTFM or know how to use Google.
local commandname="CHECK"
local function_selfname="$(basename $(readlink -f "${BASH_SOURCE[0]}"))"
if [ "$(command -v tmux)" ]||[ "$(which tmux >/dev/null 2>&1)" ]||[ -f "/usr/bin/tmux" ]||[ -f "/bin/tmux" ]; then
:
else
fn_print_fail_nl "Tmux not installed"
sleep 1
fn_script_log_fatal "Tmux is not installed"
echo " * Tmux is required to run this server."
# Suitable passive agressive message
echo " * Please see the the following link."
echo " * https://gameservermanagers.com/tmux-not-found"
core_exit.sh
fi

96
lgsm/functions/command_dev_detect_deps.sh

@ -42,62 +42,62 @@ else
echo "readelf/eu-readelf not installed"
fi
${readelf} -d ${executable} |grep NEEDED|awk '{ print $5 }'|sed 's/\[//g'|sed 's/\]//g' > "${rootdir}/.depdetect_readelf"
${readelf} -d ${executable} |grep NEEDED|awk '{ print $5 }'|sed 's/\[//g'|sed 's/\]//g' > "${lgsmdir}/tmp/.depdetect_readelf"
echo "yum install " > "${rootdir}/.depdetect_centos_list_uniq"
echo "apt-get install " > "${rootdir}/.depdetect_ubuntu_list_uniq"
echo "apt-get install " > "${rootdir}/.depdetect_debian_list_uniq"
echo "yum install " > "${lgsmdir}/tmp/.depdetect_centos_list_uniq"
echo "apt-get install " > "${lgsmdir}/tmp/.depdetect_ubuntu_list_uniq"
echo "apt-get install " > "${lgsmdir}/tmp/.depdetect_debian_list_uniq"
while read lib; do
sharedlib=${lib}
if [ "${lib}" == "libm.so.6" ]||[ "${lib}" == "libc.so.6" ]||[ "${lib}" == "libpthread.so.0" ]||[ "${lib}" == "libdl.so.2" ]||[ "${lib}" == "libnsl.so.1" ]||[ "${lib}" == "libgcc_s.so.1" ]||[ "${lib}" == "librt.so.1" ]||[ "${lib}" == "ld-linux.so.2" ]; then
echo "glibc.i686" >> "${rootdir}/.depdetect_centos_list"
echo "lib32gcc1" >> "${rootdir}/.depdetect_ubuntu_list"
echo "lib32gcc1" >> "${rootdir}/.depdetect_debian_list"
echo "glibc.i686" >> "${lgsmdir}/tmp/.depdetect_centos_list"
echo "lib32gcc1" >> "${lgsmdir}/tmp/.depdetect_ubuntu_list"
echo "lib32gcc1" >> "${lgsmdir}/tmp/.depdetect_debian_list"
elif [ "${lib}" == "libstdc++.so.6" ]; then
echo "libstdc++.i686" >> "${rootdir}/.depdetect_centos_list"
echo "libstdc++6:i386" >> "${rootdir}/.depdetect_ubuntu_list"
echo "libstdc++6:i386" >> "${rootdir}/.depdetect_debian_list"
echo "libstdc++.i686" >> "${lgsmdir}/tmp/.depdetect_centos_list"
echo "libstdc++6:i386" >> "${lgsmdir}/tmp/.depdetect_ubuntu_list"
echo "libstdc++6:i386" >> "${lgsmdir}/tmp/.depdetect_debian_list"
elif [ "${lib}" == "libstdc++.so.5" ]; then
echo "compat-libstdc++-33.i686" >> "${rootdir}/.depdetect_centos_list"
echo "libstdc++5:i386" >> "${rootdir}/.depdetect_ubuntu_list"
echo "libstdc++5:i386" >> "${rootdir}/.depdetect_debian_list"
echo "compat-libstdc++-33.i686" >> "${lgsmdir}/tmp/.depdetect_centos_list"
echo "libstdc++5:i386" >> "${lgsmdir}/tmp/.depdetect_ubuntu_list"
echo "libstdc++5:i386" >> "${lgsmdir}/tmp/.depdetect_debian_list"
elif [ "${lib}" == "libspeex.so.1" ]||[ "${lib}" == "libspeexdsp.so.1" ]; then
echo "speex.i686" >> "${rootdir}/.depdetect_centos_list"
echo "speex:i386" >> "${rootdir}/.depdetect_ubuntu_list"
echo "speex:i386" >> "${rootdir}/.depdetect_debian_list"
echo "speex.i686" >> "${lgsmdir}/tmp/.depdetect_centos_list"
echo "speex:i386" >> "${lgsmdir}/tmp/.depdetect_ubuntu_list"
echo "speex:i386" >> "${lgsmdir}/tmp/.depdetect_debian_list"
elif [ "${lib}" == "./libSDL-1.2.so.0" ]||[ "${lib}" == "libSDL-1.2.so.0" ]; then
echo "SDL.i686" >> "${rootdir}/.depdetect_centos_list"
echo "libsdl1.2debian" >> "${rootdir}/.depdetect_ubuntu_list"
echo "libsdl1.2debian" >> "${rootdir}/.depdetect_debian_list"
echo "SDL.i686" >> "${lgsmdir}/tmp/.depdetect_centos_list"
echo "libsdl1.2debian" >> "${lgsmdir}/tmp/.depdetect_ubuntu_list"
echo "libsdl1.2debian" >> "${lgsmdir}/tmp/.depdetect_debian_list"
elif [ "${lib}" == "libtbb.so.2" ]; then
echo "tbb.i686" >> "${rootdir}/.depdetect_centos_list"
echo "libtbb2" >> "${rootdir}/.depdetect_ubuntu_list"
echo "libtbb2" >> "${rootdir}/.depdetect_debian_list"
echo "tbb.i686" >> "${lgsmdir}/tmp/.depdetect_centos_list"
echo "libtbb2" >> "${lgsmdir}/tmp/.depdetect_ubuntu_list"
echo "libtbb2" >> "${lgsmdir}/tmp/.depdetect_debian_list"
elif [ "${lib}" == "libtier0.so" ]||[ "${lib}" == "Core.so" ]||[ "${lib}" == "Editor.so" ]||[ "${lib}" == "Engine.so" ]||[ "${lib}" == "liblua.so" ]||[ "${lib}" == "libsteam_api.so" ]||[ "${lib}" == "ld-linux-x86-64.so.2" ]||[ "${lib}" == "libPhysX3_x86.so" ]||[ "${lib}" == "libPhysX3Common_x86.so" ]||[ "${lib}" == "libPhysX3Cooking_x86.so" ]; then
# Known shared libs what dont requires dependencies
:
else
unknownlib=1
echo "${lib}" >> "${rootdir}/.depdetect_unknown"
echo "${lib}" >> "${lgsmdir}/tmp/.depdetect_unknown"
fi
done < "${rootdir}/.depdetect_readelf"
sort "${rootdir}/.depdetect_centos_list" | uniq >> "${rootdir}/.depdetect_centos_list_uniq"
sort "${rootdir}/.depdetect_ubuntu_list" | uniq >> "${rootdir}/.depdetect_ubuntu_list_uniq"
sort "${rootdir}/.depdetect_debian_list" | uniq >> "${rootdir}/.depdetect_debian_list_uniq"
done < "${lgsmdir}/tmp/.depdetect_readelf"
sort "${lgsmdir}/tmp/.depdetect_centos_list" | uniq >> "${lgsmdir}/tmp/.depdetect_centos_list_uniq"
sort "${lgsmdir}/tmp/.depdetect_ubuntu_list" | uniq >> "${lgsmdir}/tmp/.depdetect_ubuntu_list_uniq"
sort "${lgsmdir}/tmp/.depdetect_debian_list" | uniq >> "${lgsmdir}/tmp/.depdetect_debian_list_uniq"
if [ "${unknownlib}" == "1" ]; then
sort "${rootdir}/.depdetect_unknown" | uniq >> "${rootdir}/.depdetect_unknown_uniq"
sort "${lgsmdir}/tmp/.depdetect_unknown" | uniq >> "${lgsmdir}/tmp/.depdetect_unknown_uniq"
fi
awk -vORS=' ' '{ print $1, $2 }' "${rootdir}/.depdetect_centos_list_uniq" > "${rootdir}/.depdetect_centos_line"
awk -vORS=' ' '{ print $1, $2 }' "${rootdir}/.depdetect_ubuntu_list_uniq" > "${rootdir}/.depdetect_ubuntu_line"
awk -vORS=' ' '{ print $1, $2 }' "${rootdir}/.depdetect_debian_list_uniq" > "${rootdir}/.depdetect_debian_line"
awk -vORS=' ' '{ print $1, $2 }' "${lgsmdir}/tmp/.depdetect_centos_list_uniq" > "${lgsmdir}/tmp/.depdetect_centos_line"
awk -vORS=' ' '{ print $1, $2 }' "${lgsmdir}/tmp/.depdetect_ubuntu_list_uniq" > "${lgsmdir}/tmp/.depdetect_ubuntu_line"
awk -vORS=' ' '{ print $1, $2 }' "${lgsmdir}/tmp/.depdetect_debian_list_uniq" > "${lgsmdir}/tmp/.depdetect_debian_line"
echo ""
echo "Required Dependencies"
@ -106,46 +106,46 @@ echo "${executable}"
echo ""
echo "CentOS"
echo "================================="
cat "${rootdir}/.depdetect_centos_line"
cat "${lgsmdir}/tmp/.depdetect_centos_line"
echo ""
echo ""
echo "Ubuntu"
echo "================================="
cat "${rootdir}/.depdetect_ubuntu_line"
cat "${lgsmdir}/tmp/.depdetect_ubuntu_line"
echo ""
echo ""
echo "Debian"
echo "================================="
cat "${rootdir}/.depdetect_debian_line"
cat "${lgsmdir}/tmp/.depdetect_debian_line"
echo ""
if [ "${unknownlib}" == "1" ]; then
echo ""
echo "Unknown shared Library"
echo "================================="
cat "${rootdir}/.depdetect_unknown"
cat "${lgsmdir}/tmp/.depdetect_unknown"
fi
echo ""
echo "Required Librarys"
echo "================================="
sort "${rootdir}/.depdetect_readelf" |uniq
sort "${lgsmdir}/tmp/.depdetect_readelf" |uniq
echo ""
echo "ldd"
echo "================================="
ldd ${executable}
echo -en "\n"
rm -f "${rootdir}/.depdetect_centos_line"
rm -f "${rootdir}/.depdetect_centos_list"
rm -f "${rootdir}/.depdetect_centos_list_uniq"
rm -f "${lgsmdir}/tmp/.depdetect_centos_line"
rm -f "${lgsmdir}/tmp/.depdetect_centos_list"
rm -f "${lgsmdir}/tmp/.depdetect_centos_list_uniq"
rm -f "${rootdir}/.depdetect_debian_line"
rm -f "${rootdir}/.depdetect_debian_list"
rm -f "${rootdir}/.depdetect_debian_list_uniq"
rm -f "${lgsmdir}/tmp/.depdetect_debian_line"
rm -f "${lgsmdir}/tmp/.depdetect_debian_list"
rm -f "${lgsmdir}/tmp/.depdetect_debian_list_uniq"
rm -f "${rootdir}/.depdetect_ubuntu_line"
rm -f "${rootdir}/.depdetect_ubuntu_list"
rm -f "${rootdir}/.depdetect_ubuntu_list_uniq"
rm -f "${lgsmdir}/tmp/.depdetect_ubuntu_line"
rm -f "${lgsmdir}/tmp/.depdetect_ubuntu_list"
rm -f "${lgsmdir}/tmp/.depdetect_ubuntu_list_uniq"
rm -f "${rootdir}/.depdetect_readelf"
rm -f "${lgsmdir}/tmp/.depdetect_readelf"
rm -f "${rootdir}/.depdetect_unknown"
rm -f "${rootdir}/.depdetect_unknown_uniq"
rm -f "${lgsmdir}/tmp/.depdetect_unknown"
rm -f "${lgsmdir}/tmp/.depdetect_unknown_uniq"

31
lgsm/functions/command_dev_detect_glibc.sh

@ -0,0 +1,31 @@
#!/bin/bash
# command_dev_detect_glibc.sh function
# Author: Daniel Gibbs
# Website: https://gameservermanagers.com
# Description: Automatically detects the version of GLIBC that is required.
# Can check a file or directory recursively.
echo "================================="
echo "GLIBC Requirements Checker"
echo "================================="
if [ -z "${filesdir}" ]; then
dir="$(dirname $(readlink -f "${BASH_SOURCE[0]}"))"
fi
if [ -d "${filesdir}" ]; then
echo "Checking directory: "
echo "${filesdir}"
elif [ -f "${filesdir}" ]; then
echo "Checking file: "
echo "${filesdir}"
fi
echo ""
find ${filesdir} -type f -print0 |
while IFS= read -r -d $'\0' line; do
objdump -T $line 2>/dev/null|grep -oP "GLIBC[^ ]+" >>"${lgsmdir}/tmp/detect_glibc.tmp"
done
cat "${lgsmdir}/tmp/detect_glibc.tmp"|sort|uniq|sort -r --version-sort
rm "${lgsmdir}/tmp/detect_glibc.tmp"

3
lgsm/functions/core_dl.sh

@ -130,8 +130,8 @@ fn_fetch_file(){
if [ -f "${scriptlog}" ]; then
fn_script_log_fatal "downloading ${filename}: FAIL"
fi
echo -e "${fileurl}" | tee -a "${scriptlog}"
echo "${curlcmd}" | tee -a "${scriptlog}"
echo -e "${fileurl}\n" | tee -a "${scriptlog}"
core_exit.sh
else
fn_print_ok_eol_nl
@ -208,6 +208,7 @@ fn_fetch_function(){
}
fn_update_function(){
exitbypass=1
github_file_url_dir="lgsm/functions" # github dir containing the file
github_file_url_name="${functionfile}" # name of the github file
githuburl="https://raw.githubusercontent.com/${githubuser}/${githubrepo}/${githubbranch}/${github_file_url_dir}/${github_file_url_name}"

1
lgsm/functions/core_exit.sh

@ -35,4 +35,3 @@ else
trap - INT
exit ${exitcode}
fi

6
lgsm/functions/core_functions.sh

@ -26,7 +26,7 @@ fn_fetch_function
}
# fn_fetch_core_dl also placed here to allow legacy servers to still download core functions
if [ -z "${lgsmdir}" ]; then
if [ -z "${lgsmdir}" ]||[ -z "${functionsdir}" ]||[ -z "${libdir}" ]; then
lgsmdir="${rootdir}/lgsm"
functionsdir="${lgsmdir}/functions"
libdir="${lgsmdir}/lib"
@ -265,6 +265,10 @@ functionfile="${FUNCNAME}"
fn_fetch_function
}
command_dev_detect_glibc.sh(){
functionfile="${FUNCNAME}"
fn_fetch_function
}
# Fix

14
lgsm/functions/core_getopt.sh

@ -43,6 +43,8 @@ case "${getopt}" in
fn_autoinstall;;
dd|depsdetect)
command_dev_detect_deps.sh;;
dg|detect-glibc)
command_dev_detect_glibc.sh;;
*)
if [ -n "${getopt}" ]; then
echo -e "${red}Unknown command${default}: $0 ${getopt}"
@ -103,6 +105,8 @@ case "${getopt}" in
fn_autoinstall;;
dd|depsdetect)
command_dev_detect_deps.sh;;
dg|detect-glibc)
command_dev_detect_glibc.sh;;
*)
if [ -n "${getopt}" ]; then
echo -e "${red}Unknown command${default}: $0 ${getopt}"
@ -156,6 +160,8 @@ case "${getopt}" in
command_install.sh;;
dd|depsdetect)
command_dev_detect_deps.sh;;
dg|detect-glibc)
command_dev_detect_glibc.sh;;
*)
if [ -n "${getopt}" ]; then
echo -e "${red}Unknown command${default}: $0 ${getopt}"
@ -218,6 +224,8 @@ case "${getopt}" in
fn_autoinstall;;
dd|depsdetect)
command_dev_detect_deps.sh;;
dg|detect-glibc)
command_dev_detect_glibc.sh;;
fd|fastdl)
command_fastdl.sh;;
*)
@ -283,6 +291,8 @@ case "${getopt}" in
compress_ut99_maps.sh;;
dd|depsdetect)
command_dev_detect_deps.sh;;
dg|detect-glibc)
command_dev_detect_glibc.sh;;
*)
if [ -n "${getopt}" ]; then
echo -e "${red}Unknown command${default}: $0 ${getopt}"
@ -349,6 +359,8 @@ case "${getopt}" in
fn_autoinstall;;
dd|depsdetect)
command_dev_detect_deps.sh;;
dg|detect-glibc)
command_dev_detect_glibc.sh;;
mc|map-compressor)
compress_unreal2_maps.sh;;
*)
@ -417,6 +429,8 @@ case "${getopt}" in
compress_unreal2_maps.sh;;
dd|depsdetect)
command_dev_detect_deps.sh;;
dg|detect-glibc)
command_dev_detect_glibc.sh;;
*)
if [ -n "${getopt}" ]; then
echo -e "${red}Unknown command${default}: $0 ${getopt}"

18
lgsm/functions/fix_glibc.sh

@ -16,7 +16,7 @@ do
fi
done
local libm_servers_array=( "Double Action: Boogaloo" "Fistful of Frags" "Insurgency" "Natural Selection 2" "NS2: Combat" "No More Room in Hell" )
local libm_servers_array=( "Codename CURE" "Double Action: Boogaloo" "Fistful of Frags" "Garry's Mod" "Insurgency" "Natural Selection 2" "NS2: Combat" "No More Room in Hell" )
for libm_server in "${libm_servers_array[@]}"
do
if [ "${gamename}" == "${libm_server}" ]; then
@ -24,4 +24,20 @@ do
fi
done
local libc_servers_array=( "Garry's Mod" )
for libc_server in "${libc_servers_array[@]}"
do
if [ "${gamename}" == "${libc_server}" ]; then
fn_fetch_file_github "lgsm/lib/ubuntu12.04/i386" "libc.so.6" "${lgsmdir}/lib" "noexecutecmd" "norun" "noforce" "nomd5"
fi
done
local libpthread_servers_array=( "Garry's Mod" )
for libpthread_server in "${libpthread_servers_array[@]}"
do
if [ "${gamename}" == "${libpthread_server}" ]; then
fn_fetch_file_github "lgsm/lib/ubuntu12.04/i386" "libpthread.so.0" "${lgsmdir}/lib" "noexecutecmd" "norun" "noforce" "nomd5"
fi
done
export LD_LIBRARY_PATH=:"${libdir}"

6
lgsm/functions/info_distro.sh

@ -25,7 +25,11 @@ else
distroname="$(uname -s) $(uname -r)"
fi
distroversion=$(grep VERSION_ID /etc/os-release | tr -cd '[:digit:]')
if [ -f "/etc/os-release" ]; then
distroversion=$(grep VERSION_ID /etc/os-release | tr -cd '[:digit:]')
elif [ -n "$(command -v yum)" ]; then
distroversion=$(rpm -qa \*-release | grep -Ei "oracle|redhat|centos" | cut -d"-" -f3)
fi
## Glibc version
# e.g: 1.17

BIN
Insurgency/dependencies/libpthread.so.0 → lgsm/lib/ubuntu12.04/i386/libpthread.so.0

Binary file not shown.

12
tests/tests_jc2server.sh

@ -473,6 +473,18 @@ fn_setstatus
(command_validate.sh)
fn_test_result_pass
echo ""
echo "4.9 - update-functions"
echo "================================="
echo "Description:"
echo "runs update-functions."
echo ""
echo "Command: ./jc2server update-functions"
requiredstatus="OFFLINE"
fn_setstatus
(command_update_functions.sh)
fn_test_result_pass
echo ""
echo "5.1 - monitor - online"
echo "================================="

13
tests/tests_ts3server.sh

@ -368,6 +368,7 @@ fn_setstatus
(command_restart.sh)
fn_test_result_pass
echo ""
echo "4.1 - update"
echo "================================="
echo "Description:"
@ -378,6 +379,18 @@ fn_setstatus
(command_update.sh)
fn_test_result_pass
echo ""
echo "4.2 - update-functions"
echo "================================="
echo "Description:"
echo "runs update-functions."
echo ""
echo "Command: ./jc2server update-functions"
requiredstatus="OFFLINE"
fn_setstatus
(command_update_functions.sh)
fn_test_result_pass
echo ""
echo "5.1 - monitor - online"
echo "================================="

Loading…
Cancel
Save