Browse Source

fix(cs): fix steamclient missing

pull/3030/head
H3o66 5 years ago
parent
commit
34f4fdd769
  1. 5
      lgsm/functions/core_functions.sh
  2. 2
      lgsm/functions/fix.sh
  3. 23
      lgsm/functions/fix_cs.sh

5
lgsm/functions/core_functions.sh

@ -325,6 +325,11 @@ functionfile="${FUNCNAME[0]}"
fn_fetch_function
}
fix_cs.sh(){
functionfile="${FUNCNAME[0]}"
fn_fetch_function
}
fix_csgo.sh(){
functionfile="${FUNCNAME[0]}"
fn_fetch_function

2
lgsm/functions/fix.sh

@ -40,6 +40,8 @@ if [ "${commandname}" != "INSTALL" ]&&[ -z "${fixbypass}" ]; then
fix_arma3.sh
elif [ "${shortname}" == "ark" ]; then
fix_ark.sh
elif [ "${shortname}" == "cs" ]; then
fix_cs.sh
elif [ "${shortname}" == "csgo" ]; then
fix_csgo.sh
elif [ "${shortname}" == "cmw" ]; then

23
lgsm/functions/fix_cs.sh

@ -0,0 +1,23 @@
#!/bin/bash
# LinuxGSM fix_cs.sh function
# Author: Christian Birk
# Website: https://linuxgsm.com
# Description: Resolves various issues with Counter Strike.
functionselfname="$(basename "$(readlink -f "${BASH_SOURCE[0]}")")"
if [ "${shortname}" == "cs" ]; then
# Fixes: steamclient.so: cannot open shared object file: No such file or directory
if [ ! -f "${serverfiles}/steamclient.so" ]; then
fixname="steamclient.so x86"
fn_fix_msg_start
if [ -f "${HOME}/.steam/steamcmd/linux32/steamclient.so" ]; then
cp "${steamcmddir}/linux32/steamclient.so" "${serverfiles}/steamclient.so" >> "${lgsmlog}"
elif [ -f "${steamcmddir}/linux32/steamclient.so" ]; then
cp "${steamcmddir}/linux32/steamclient.so" "${serverfiles}/steamclient.so" >> "${lgsmlog}"
else
:
fi
fn_fix_msg_end
fi
fi
Loading…
Cancel
Save