From c205e26faf16ae66c433ac043bee26fd03329325 Mon Sep 17 00:00:00 2001 From: Christian Date: Wed, 16 Sep 2020 00:04:20 +0200 Subject: [PATCH] fix(untserver): fix steamclient.so issue (#3038) --- lgsm/functions/fix_unt.sh | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/lgsm/functions/fix_unt.sh b/lgsm/functions/fix_unt.sh index 60f3d2edf..eee816bfc 100644 --- a/lgsm/functions/fix_unt.sh +++ b/lgsm/functions/fix_unt.sh @@ -6,5 +6,17 @@ functionselfname="$(basename "$(readlink -f "${BASH_SOURCE[0]}")")" +# copy steamclient to server dir to fix the below +if [ ! -f "${serverfiles}/steamclient.so" ]; then + fixname="steamclient.so x86_64" + fn_fix_msg_start + if [ -f "${HOME}/.steam/steamcmd/linux64/steamclient.so" ]; then + cp "${HOME}/.steam/steamcmd/linux64/steamclient.so" "${serverfiles}/steamclient.so" >> "${lgsmlog}" + elif [ -f "${steamcmddir}/linux64/steamclient.so" ]; then + cp "${steamcmddir}/linux64/steamclient.so" "${serverfiles}/steamclient.so" >> "${lgsmlog}" + fi + fn_fix_msg_end +fi + # steamclient.so: cannot open shared object file: No such file or directory -export LD_LIBRARY_PATH="$LD_LIBRARY_PATH:${serverfiles}:${serverfiles}/linux64" +export LD_LIBRARY_PATH="$LD_LIBRARY_PATH:${serverfiles}"