Browse Source

Hotfix v21.2.4 (#3484)

* fix(mc): add Java 16 as a dependency requirement for Ubuntu 20.04 and above (#3482)
* fix(steamcmd): resolve disk write failure bug (#3483)
pull/3486/head
Daniel Gibbs 4 years ago
committed by GitHub
parent
commit
20c382db81
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 16
      lgsm/functions/check_deps.sh
  2. 1
      lgsm/functions/check_steamcmd.sh
  3. 2
      lgsm/functions/core_functions.sh
  4. 7
      lgsm/functions/core_steamcmd.sh
  5. 4
      lgsm/functions/info_distro.sh
  6. 3
      lgsm/functions/info_messages.sh
  7. 2
      tests/tests_fctrserver.sh
  8. 2
      tests/tests_jc2server.sh
  9. 2
      tests/tests_mcserver.sh
  10. 2
      tests/tests_ts3server.sh

16
lgsm/functions/check_deps.sh

@ -414,8 +414,20 @@ fn_deps_build_debian(){
# Hurtword/Rust # Hurtword/Rust
elif [ "${shortname}" == "hw" ]||[ "${shortname}" == "rust" ]; then elif [ "${shortname}" == "hw" ]||[ "${shortname}" == "rust" ]; then
array_deps_required+=( lib32z1 ) array_deps_required+=( lib32z1 )
# Minecraft, Rising World, Wurm # Minecraft, Rising World
elif [ "${shortname}" == "mc" ]||[ "${shortname}" == "pmc" ]||[ "${shortname}" == "wmc" ]||[ "${shortname}" == "rw" ]; then elif [ "${shortname}" == "mc" ]||[ "${shortname}" == "pmc" ]||[ "${shortname}" == "wmc" ]; then
javaversion=$(java -version 2>&1 | grep "version")
if [ "${javaversion}" ]; then
# Added for users using Oracle JRE to bypass the check.
javacheck=1
else
if { [ "${distroid}" == "ubuntu" ]&&[ "${distroversion}" == "20.04" ]; }||{ [ "${distroid}" == "ubuntu" ]&&[ "${distroversion}" == "20.10" ]; }||{ [ "${distroid}" == "ubuntu" ]&&[ "${distroversion}" == "21.04" ]; }||{ [ "${distroid}" == "pop" ]&&[ "${distroversion}" == "20.04" ]; }||{ [ "${distroid}" == "pop" ]&&[ "${distroversion}" == "20.10" ]; }||{ [ "${distroid}" == "pop" ]&&[ "${distroversion}" == "21.04" ]; }; then
array_deps_required+=( openjdk-16-jre )
else
array_deps_required+=( default-jre )
fi
fi
elif [ "${shortname}" == "rw" ]; then
javaversion=$(java -version 2>&1 | grep "version") javaversion=$(java -version 2>&1 | grep "version")
if [ "${javaversion}" ]; then if [ "${javaversion}" ]; then
# Added for users using Oracle JRE to bypass the check. # Added for users using Oracle JRE to bypass the check.

1
lgsm/functions/check_steamcmd.sh

@ -17,5 +17,6 @@ if [ ${shortname} == "ark" ]; then
fi fi
fn_check_steamcmd_dir fn_check_steamcmd_dir
fn_check_steamcmd_dir_legacy fn_check_steamcmd_dir_legacy
fn_check_steamcmd_steamapp
fn_check_steamcmd_user fn_check_steamcmd_user
fn_check_steamcmd_exec fn_check_steamcmd_exec

2
lgsm/functions/core_functions.sh

@ -8,7 +8,7 @@
functionselfname="$(basename "$(readlink -f "${BASH_SOURCE[0]}")")" functionselfname="$(basename "$(readlink -f "${BASH_SOURCE[0]}")")"
modulesversion="v21.2.3" modulesversion="v21.2.4"
# Core # Core

7
lgsm/functions/core_steamcmd.sh

@ -97,6 +97,13 @@ fn_check_steamcmd_dir_legacy(){
fi fi
} }
fn_check_steamcmd_steamapp(){
# Check that steamapp directory fixes issue #3481
if [ ! -d "${serverfiles}/steamapps" ]; then
mkdir -p "${serverfiles}/steamapps"
fi
}
fn_check_steamcmd_ark(){ fn_check_steamcmd_ark(){
# Checks if SteamCMD exists in # Checks if SteamCMD exists in
# Engine/Binaries/ThirdParty/SteamCMD/Linux # Engine/Binaries/ThirdParty/SteamCMD/Linux

4
lgsm/functions/info_distro.sh

@ -83,6 +83,10 @@ else
fi fi
fi fi
if [ "$(command -V java 2>/dev/null)" ]; then
javaversion=$(java -version 2>&1 | grep "version")
fi
## Uptime ## Uptime
uptime=$(</proc/uptime) uptime=$(</proc/uptime)
uptime=${uptime/[. ]*/} uptime=${uptime/[. ]*/}

3
lgsm/functions/info_messages.sh

@ -100,6 +100,9 @@ fn_info_message_distro(){
echo -e "${lightblue}Uptime:\t${default}${days}d, ${hours}h, ${minutes}m" echo -e "${lightblue}Uptime:\t${default}${days}d, ${hours}h, ${minutes}m"
echo -e "${lightblue}tmux:\t${default}${tmuxv}" echo -e "${lightblue}tmux:\t${default}${tmuxv}"
echo -e "${lightblue}glibc:\t${default}${glibcversion}" echo -e "${lightblue}glibc:\t${default}${glibcversion}"
if [ -n "${javaram}" ]; then
echo -e "${lightblue}Java:\t${default}${javaversion}"
fi
} | column -s $'\t' -t } | column -s $'\t' -t
} }

2
tests/tests_fctrserver.sh

@ -20,7 +20,7 @@ if [ -f ".dev-debug" ]; then
set -x set -x
fi fi
version="v21.2.3" version="v21.2.4"
shortname="fctr" shortname="fctr"
gameservername="fctrserver" gameservername="fctrserver"
commandname="CORE" commandname="CORE"

2
tests/tests_jc2server.sh

@ -20,7 +20,7 @@ if [ -f ".dev-debug" ]; then
set -x set -x
fi fi
version="v21.2.3" version="v21.2.4"
shortname="jc2" shortname="jc2"
gameservername="jc2server" gameservername="jc2server"
commandname="CORE" commandname="CORE"

2
tests/tests_mcserver.sh

@ -20,7 +20,7 @@ if [ -f ".dev-debug" ]; then
set -x set -x
fi fi
version="v21.2.3" version="v21.2.4"
shortname="mc" shortname="mc"
gameservername="mcserver" gameservername="mcserver"
commandname="CORE" commandname="CORE"

2
tests/tests_ts3server.sh

@ -20,7 +20,7 @@ if [ -f ".dev-debug" ]; then
set -x set -x
fi fi
version="v21.2.3" version="v21.2.4"
shortname="ts3" shortname="ts3"
gameservername="ts3server" gameservername="ts3server"
commandname="CORE" commandname="CORE"

Loading…
Cancel
Save