|
|
@ -6,26 +6,25 @@ |
|
|
|
|
|
|
|
functionselfname="$(basename "$(readlink -f "${BASH_SOURCE[0]}")")" |
|
|
|
|
|
|
|
if [ "${shortname}" == "pz" ]; then |
|
|
|
# Fixes: [S_API FAIL] SteamAPI_Init() failed; unable to locate a running instance of Steam, or a local steamclient.so. |
|
|
|
if [ ! -f "${serverfiles}/linux32/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}/linux32/steamclient.so" >> "${lgsmlog}" |
|
|
|
elif [ -f "${steamcmddir}/linux32/steamclient.so" ]; then |
|
|
|
cp "${steamcmddir}/linux32/steamclient.so" "${serverfiles}/linux32/steamclient.so" >> "${lgsmlog}" |
|
|
|
fi |
|
|
|
fn_fix_msg_end |
|
|
|
# Fixes: [S_API FAIL] SteamAPI_Init() failed; unable to locate a running instance of Steam, or a local steamclient.so. |
|
|
|
if [ ! -f "${serverfiles}/linux32/steamclient.so" ]; then |
|
|
|
fixname="steamclient.so x86" |
|
|
|
fn_fix_msg_start |
|
|
|
if [ -f "${HOME}/.steam/steamcmd/linux32/steamclient.so" ]; then |
|
|
|
cp "${HOME}/.steam/steamcmd/linux32/steamclient.so" "${serverfiles}/linux32/steamclient.so" >> "${lgsmlog}" |
|
|
|
elif [ -f "${steamcmddir}/linux32/steamclient.so" ]; then |
|
|
|
cp "${steamcmddir}/linux32/steamclient.so" "${serverfiles}/linux32/steamclient.so" >> "${lgsmlog}" |
|
|
|
fi |
|
|
|
if [ ! -f "${serverfiles}/linux64/steamclient.so" ]; then |
|
|
|
fixname="steamclient.so x86_64" |
|
|
|
fn_fix_msg_start |
|
|
|
if [ -f "${HOME}/.steam/steamcmd/linux64/steamclient.so" ]; then |
|
|
|
cp "${steamcmddir}/linux64/steamclient.so" "${serverfiles}/linux64/steamclient.so" >> "${lgsmlog}" |
|
|
|
elif [ -f "${steamcmddir}/linux64/steamclient.so" ]; then |
|
|
|
cp "${steamcmddir}/linux64/steamclient.so" "${serverfiles}/linux64/steamclient.so" >> "${lgsmlog}" |
|
|
|
fi |
|
|
|
fn_fix_msg_end |
|
|
|
fn_fix_msg_end |
|
|
|
fi |
|
|
|
|
|
|
|
if [ ! -f "${serverfiles}/linux64/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}/linux64/steamclient.so" >> "${lgsmlog}" |
|
|
|
elif [ -f "${steamcmddir}/linux64/steamclient.so" ]; then |
|
|
|
cp "${steamcmddir}/linux64/steamclient.so" "${serverfiles}/linux64/steamclient.so" >> "${lgsmlog}" |
|
|
|
fi |
|
|
|
fn_fix_msg_end |
|
|
|
fi |
|
|
|