From eab9e6664620b88546d236fdf395bc296876c564 Mon Sep 17 00:00:00 2001 From: Daniel Gibbs Date: Sun, 19 Apr 2026 10:22:30 +0100 Subject: [PATCH] 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. --- lgsm/config-default/config-lgsm/etlserver/_default.cfg | 2 +- lgsm/modules/update_etl.sh | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/lgsm/config-default/config-lgsm/etlserver/_default.cfg b/lgsm/config-default/config-lgsm/etlserver/_default.cfg index c2a2bc1bb..9679a8f44 100644 --- a/lgsm/config-default/config-lgsm/etlserver/_default.cfg +++ b/lgsm/config-default/config-lgsm/etlserver/_default.cfg @@ -141,7 +141,7 @@ consoleinteract="yes" # Do not edit gamename="ET: Legacy" engine="idtech3" -glibc="2.7" +glibc="2.17" #### Directories #### # Edit with care diff --git a/lgsm/modules/update_etl.sh b/lgsm/modules/update_etl.sh index 0dda224d3..b70e2cc97 100644 --- a/lgsm/modules/update_etl.sh +++ b/lgsm/modules/update_etl.sh @@ -19,8 +19,8 @@ fn_update_localbuild() { # Gets local build info. fn_print_dots "Checking local build: ${remotelocation}" # Try to get build version from etconsole.log. - if [ -f "${serverfiles}/legacy/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) + if [ -f "${gamelogdir}/etconsole.log" ]; then + localbuild=$(grep "Initializing legacy game" "${gamelogdir}/etconsole.log" | sed -n 's/.*\^2\(v[0-9]\+\.[0-9]\+\.[0-9]\+\).*/\1/p' | tail -1) fi # Fall back to build.txt if log parse failed or log does not exist. if [ -z "${localbuild}" ]; then