Navigation Menu

Skip to content

Commit

Permalink
fix(wurm): fix server startup for wurm and dependency (#3046)
Browse files Browse the repository at this point in the history
  • Loading branch information
h3o66 committed Sep 20, 2020
1 parent 4f42e70 commit 7fe9929
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 10 deletions.
4 changes: 2 additions & 2 deletions lgsm/functions/check_deps.sh
Expand Up @@ -405,7 +405,7 @@ fn_deps_build_debian(){
elif [ "${shortname}" == "hw" ]||[ "${shortname}" == "rust" ]; then
array_deps_required+=( lib32z1 )
# Minecraft, Rising World, Wurm
elif [ "${shortname}" == "mc" ]||[ "${shortname}" == "rw" ]||[ "${shortname}" == "wurm" ]; then
elif [ "${shortname}" == "mc" ]||[ "${shortname}" == "rw" ]; then
javaversion=$(java -version 2>&1 | grep "version")
if [ "${javaversion}" ]; then
# Added for users using Oracle JRE to bypass the check.
Expand Down Expand Up @@ -514,7 +514,7 @@ fn_deps_build_redhat(){
elif [ "${shortname}" == "hw" ]||[ "${shortname}" == "rust" ]; then
array_deps_required+=( zlib-devel )
# Minecraft, Rising World, Wurm
elif [ "${shortname}" == "mc" ]||[ "${shortname}" == "rw" ]||[ "${shortname}" == "wurm" ]; then
elif [ "${shortname}" == "mc" ]||[ "${shortname}" == "rw" ]; then
javaversion=$(java -version 2>&1 | grep "version")
if [ "${javaversion}" ]; then
# Added for users using Oracle JRE to bypass the check.
Expand Down
4 changes: 2 additions & 2 deletions lgsm/functions/fix_bo.sh
Expand Up @@ -8,7 +8,7 @@ functionselfname="$(basename "$(readlink -f "${BASH_SOURCE[0]}")")"

export LD_LIBRARY_PATH="$LD_LIBRARY_PATH:${serverfiles}:${serverfiles}/BODS_Data/Plugins/x86_64"

# steamclient.so x86 fix for unity3d game server
# steamclient.so x86 fix.
if [ ! -f "${serverfiles}/BODS_Data/Plugins/x86/steamclient.so" ]; then
fixname="steamclient.so x86"
fn_fix_msg_start
Expand All @@ -21,7 +21,7 @@ if [ ! -f "${serverfiles}/BODS_Data/Plugins/x86/steamclient.so" ]; then
fn_fix_msg_end
fi

# steamclient.so x86_64 fix for unity3d game server
# steamclient.so x86_64 fix.
if [ ! -f "${serverfiles}/BODS_Data/Plugins/x86_64/steamclient.so" ]; then
fixname="steamclient.so x86_64"
fn_fix_msg_start
Expand Down
13 changes: 7 additions & 6 deletions lgsm/functions/fix_wurm.sh
Expand Up @@ -6,14 +6,15 @@

functionselfname="$(basename "$(readlink -f "${BASH_SOURCE[0]}")")"

if [ ! -f "${serverfiles}/nativelibs" ]; then
fixname="steamclient.so x86"
# steamclient.so x86_64 fix.
if [ ! -f "${serverfiles}/nativelibs/steamclient.so" ]; then
fixname="steamclient.so x86_64"
fn_fix_msg_start
mkdir -p "${serverfiles}/nativelibs"
if [ -f "${HOME}/.steam/steamcmd/linux32/steamclient.so" ]; then
cp "${HOME}/.steam/steamcmd/linux32/steamclient.so" "${serverfiles}/nativelibs/steamclient.so"
elif [ -f "${steamcmddir}/linux32/steamclient.so" ]; then
cp "${steamcmddir}/linux32/steamclient.so" "${serverfiles}/nativelibs/steamclient.so"
if [ -f "${HOME}/.steam/steamcmd/linux64/steamclient.so" ]; then
cp "${HOME}/.steam/steamcmd/linux64/steamclient.so" "${serverfiles}/nativelibs/steamclient.so"
elif [ -f "${steamcmddir}/linux64/steamclient.so" ]; then
cp "${steamcmddir}/linux64/steamclient.so" "${serverfiles}/nativelibs/steamclient.so"
fi
fn_fix_msg_end
fi
Expand Down

0 comments on commit 7fe9929

Please sign in to comment.