Browse Source

Merge remote-tracking branch 'refs/remotes/origin/master' into development

pull/1038/head
Daniel Gibbs 9 years ago
parent
commit
fed375b9c1
  1. 4
      .travis.yml
  2. 4
      lgsm/functions/check_deps.sh
  3. 2
      lgsm/functions/check_permissions.sh
  4. 5
      lgsm/functions/info_config.sh
  5. 3
      lgsm/functions/info_glibc.sh

4
.travis.yml

@ -4,7 +4,7 @@ env:
- DISTRO=ubuntu-trusty - DISTRO=ubuntu-trusty
before_script: before_script:
- curl -L "https://shunit2.googlecode.com/files/shunit2-2.1.6.tgz" | tar zx - curl -L "https://storage.googleapis.com/google-code-archive-downloads/v2/code.google.com/shunit2/shunit2-2.1.6.tgz" | tar zx
addons: addons:
apt: apt:
@ -23,4 +23,4 @@ addons:
script: script:
- bash tests/tests_jc2server.sh - bash tests/tests_jc2server.sh
- bash tests/tests_ts3server.sh - bash tests/tests_ts3server.sh

4
lgsm/functions/check_deps.sh

@ -150,7 +150,7 @@ if [ -n "$(command -v dpkg-query)" ]; then
fi fi
# All servers except ts3,mumble and minecraft servers require libstdc++6 and lib32gcc1 # All servers except ts3,mumble and minecraft servers require libstdc++6 and lib32gcc1
if [ "${gamename}" != "TeamSpeak 3" ]||[ "${gamename}" != "Mumble" ]||[ "${engine}" != "lwjgl2" ]; then if [ "${gamename}" != "TeamSpeak 3" ]&&[ "${gamename}" != "Mumble" ]&&[ "${engine}" != "lwjgl2" ]; then
if [ "${arch}" == "x86_64" ]; then if [ "${arch}" == "x86_64" ]; then
array_deps_required+=( lib32gcc1 libstdc++6:i386 ) array_deps_required+=( lib32gcc1 libstdc++6:i386 )
else else
@ -219,7 +219,7 @@ elif [ -n "$(command -v yum)" ]; then
fi fi
# All servers except ts3,mumble and minecraft servers require glibc.i686 and libstdc++.i686 # All servers except ts3,mumble and minecraft servers require glibc.i686 and libstdc++.i686
if [ "${gamename}" != "TeamSpeak 3" ]||[ "${gamename}" != "Mumble" ]||[ "${engine}" != "lwjgl2" ]; then if [ "${gamename}" != "TeamSpeak 3" ]&&[ "${gamename}" != "Mumble" ]&&[ "${engine}" != "lwjgl2" ]; then
array_deps_required+=( glibc.i686 libstdc++.i686 ) array_deps_required+=( glibc.i686 libstdc++.i686 )
fi fi

2
lgsm/functions/check_permissions.sh

@ -37,7 +37,7 @@ fn_check_ownership(){
if [ "${funcownissue}" == "1" ]; then if [ "${funcownissue}" == "1" ]; then
find "${functionsdir}" -not -user $(whoami) -printf "%u\t\t%g\t%p\n" find "${functionsdir}" -not -user $(whoami) -printf "%u\t\t%g\t%p\n"
fi fi
if [ "${funcownissue}" == "1" ]; then if [ "${filesownissue}" == "1" ]; then
find "${filesdir}" -not -user $(whoami) -printf "%u\t\t%g\t%p\n" find "${filesdir}" -not -user $(whoami) -printf "%u\t\t%g\t%p\n"
fi fi

5
lgsm/functions/info_config.sh

@ -70,6 +70,7 @@ fn_info_config_dontstarve(){
fn_info_config_minecraft(){ fn_info_config_minecraft(){
if [ ! -f "${servercfgfullpath}" ]; then if [ ! -f "${servercfgfullpath}" ]; then
servername="${unavailable}"
rconpassword="${unavailable}" rconpassword="${unavailable}"
rconport="${zero}" rconport="${zero}"
slots="${zero}" slots="${zero}"
@ -82,6 +83,7 @@ fn_info_config_minecraft(){
if [ -n "${ipconfigcheck}" ]; then if [ -n "${ipconfigcheck}" ]; then
ip="${ipconfigcheck}" ip="${ipconfigcheck}"
fi fi
servername=$(grep "motd=" "${servercfgfullpath}" | sed 's/motd=//g' | tr -d '=\";' | sed 's/\\n.*//g')
rconpassword=$(grep "rcon.password=" "${servercfgfullpath}" | sed 's/rcon.password=//g' | tr -d '=\"; ') rconpassword=$(grep "rcon.password=" "${servercfgfullpath}" | sed 's/rcon.password=//g' | tr -d '=\"; ')
rconport=$(grep "rcon.port=" "${servercfgfullpath}" | tr -cd '[:digit:]') rconport=$(grep "rcon.port=" "${servercfgfullpath}" | tr -cd '[:digit:]')
slots=$(grep "max-players=" "${servercfgfullpath}" | tr -cd '[:digit:]') slots=$(grep "max-players=" "${servercfgfullpath}" | tr -cd '[:digit:]')
@ -90,6 +92,7 @@ fn_info_config_minecraft(){
gameworld=$(grep "level-name=" "${servercfgfullpath}" | sed 's/level-name=//g' | tr -d '=\"; ') gameworld=$(grep "level-name=" "${servercfgfullpath}" | sed 's/level-name=//g' | tr -d '=\"; ')
# Not Set # Not Set
servername=${servername:-"NOT SET"}
rconpassword=${rconpassword:-"NOT SET"} rconpassword=${rconpassword:-"NOT SET"}
rconport=${rconport:-"NOT SET"} rconport=${rconport:-"NOT SET"}
slots=${slots:-"NOT SET"} slots=${slots:-"NOT SET"}
@ -149,7 +152,7 @@ fn_info_config_realvirtuality(){
serverpassword="${unavailable}" serverpassword="${unavailable}"
slots="${zero}" slots="${zero}"
else else
servername=$(grep "hostname" "${servercfgfullpath}" | grep -v "//" | sed 's/\<hostname\>//g' | tr -d '=\"; ') servername=$(grep "hostname" "${servercfgfullpath}" | grep -v "//" | awk -F '"' '{print $2}')
adminpassword=$(grep "passwordAdmin" "${servercfgfullpath}" | grep -v "//" | sed 's/\passwordAdmin//g' | tr -d '=\"; ') adminpassword=$(grep "passwordAdmin" "${servercfgfullpath}" | grep -v "//" | sed 's/\passwordAdmin//g' | tr -d '=\"; ')
serverpassword=$(grep "password =" "${servercfgfullpath}" | grep -v "//" | sed 's/\password//g' | tr -d '=\"; ') serverpassword=$(grep "password =" "${servercfgfullpath}" | grep -v "//" | sed 's/\password//g' | tr -d '=\"; ')
slots=$(grep "maxPlayers" "${servercfgfullpath}" | grep -v "#" | tr -cd '[:digit:]') slots=$(grep "maxPlayers" "${servercfgfullpath}" | grep -v "#" | tr -cd '[:digit:]')

3
lgsm/functions/info_glibc.sh

@ -41,6 +41,9 @@ elif [ "${gamename}" == "Quake Live" ]; then
elif [ "${gamename}" == "TeamSpeak 3" ]; then elif [ "${gamename}" == "TeamSpeak 3" ]; then
glibcrequired="NOT REQUIRED" glibcrequired="NOT REQUIRED"
glibcfix="no" glibcfix="no"
elif [ "${gamename}" == "Teeworlds" ]; then
glibcrequired="2.3"
glibcfix="no"
elif [ "${engine}" == "avalanche" ]; then elif [ "${engine}" == "avalanche" ]; then
glibcrequired="2.13" glibcrequired="2.13"
glibcfix="yes" glibcfix="yes"

Loading…
Cancel
Save