Browse Source

feat(etl): update glibc requirement and log path detection

Updates the minimum glibc requirement to 2.17 and switches the local build detection to use the gamelogdir variable instead of a hardcoded path.
pull/4896/head
Daniel Gibbs 2 months ago
parent
commit
eab9e66646
Failed to extract signature
  1. 2
      lgsm/config-default/config-lgsm/etlserver/_default.cfg
  2. 4
      lgsm/modules/update_etl.sh

2
lgsm/config-default/config-lgsm/etlserver/_default.cfg

@ -141,7 +141,7 @@ consoleinteract="yes"
# Do not edit # Do not edit
gamename="ET: Legacy" gamename="ET: Legacy"
engine="idtech3" engine="idtech3"
glibc="2.7" glibc="2.17"
#### Directories #### #### Directories ####
# Edit with care # Edit with care

4
lgsm/modules/update_etl.sh

@ -19,8 +19,8 @@ fn_update_localbuild() {
# Gets local build info. # Gets local build info.
fn_print_dots "Checking local build: ${remotelocation}" fn_print_dots "Checking local build: ${remotelocation}"
# Try to get build version from etconsole.log. # Try to get build version from etconsole.log.
if [ -f "${serverfiles}/legacy/etconsole.log" ]; then if [ -f "${gamelogdir}/etconsole.log" ]; then
localbuild=$(grep "Initializing legacy game" "${serverfiles}/legacy/etconsole.log" | sed -n 's/.*\^2\(v[0-9]\+\.[0-9]\+\.[0-9]\+\).*/\1/p' | tail -1) localbuild=$(grep "Initializing legacy game" "${gamelogdir}/etconsole.log" | sed -n 's/.*\^2\(v[0-9]\+\.[0-9]\+\.[0-9]\+\).*/\1/p' | tail -1)
fi fi
# Fall back to build.txt if log parse failed or log does not exist. # Fall back to build.txt if log parse failed or log does not exist.
if [ -z "${localbuild}" ]; then if [ -z "${localbuild}" ]; then

Loading…
Cancel
Save