Skip to content

Commit

Permalink
Merge branch 'hotfix/v20.5.1'
Browse files Browse the repository at this point in the history
  • Loading branch information
dgibbs64 committed Oct 5, 2020
2 parents f774335 + ff646ad commit 4179a77
Show file tree
Hide file tree
Showing 15 changed files with 31 additions and 9 deletions.
13 changes: 13 additions & 0 deletions lgsm/functions/command_wipe.sh
Expand Up @@ -146,6 +146,19 @@ fn_wipe_server_files(){
fn_sleep_time
fn_script_log_pass "No player death to remove"
fi
# Wipe player states files
if [ -n "$(find "${serveridentitydir}" -type f -name "player.states.*.db")" ]; then
echo -en "removing player states player.states.*.db file(s)..."
fn_sleep_time
fn_script_log_info "Removing player states: ${serveridentitydir}/player.states.*.db"
find "${serveridentitydir:?}" -type f -name "player.states.*.db" -delete | tee -a "${lgsmlog}"
fn_wipe_exit_code
fn_sleep_time
else
echo -e "no player states to remove"
fn_sleep_time
fn_script_log_pass "No player states to remove"
fi
# Wipe blueprints only if full-wipe command was used.
if [ "${fullwipe}" == "1" ]; then
if [ -n "$(find "${serveridentitydir}" -type f -name "player.blueprints.*.db")" ]; then
Expand Down
2 changes: 1 addition & 1 deletion lgsm/functions/core_functions.sh
Expand Up @@ -7,7 +7,7 @@

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

modulesversion="v20.5.0"
modulesversion="v20.5.1"

# Core

Expand Down
2 changes: 2 additions & 0 deletions lgsm/functions/fix_steamcmd.sh
Expand Up @@ -79,6 +79,8 @@ elif [ "${shortname}" == "cmw" ]; then
fn_fix_steamclient_so "32" "${executabledir}/lib"
elif [ "${shortname}" == "cs" ]; then
fn_fix_steamclient_so "32" "${serverfiles}"
elif [ "${shortname}" == "ins" ]; then
fn_fix_steamclient_so "32" "${serverfiles}/bin"
elif [ "${shortname}" == "pz" ]; then
fn_fix_steamclient_so "32" "${serverfiles}/linux32"
fn_fix_steamclient_so "64" "${serverfiles}/linux64"
Expand Down
1 change: 1 addition & 0 deletions lgsm/functions/update_factorio.sh 100755 → 100644
Expand Up @@ -112,6 +112,7 @@ fn_update_factorio_compare(){
command_start.sh
fn_firstcommand_reset
fi
unset exitbypass
date +%s > "${lockdir}/lastupdate.lock"
alert="update"
alert.sh
Expand Down
7 changes: 4 additions & 3 deletions lgsm/functions/update_minecraft.sh
Expand Up @@ -35,7 +35,7 @@ fn_update_minecraft_localbuild(){
# Gets local build info.
fn_print_dots "Checking local build: ${remotelocation}"
# Uses log file to gather info.
localbuild=$(grep Version "${consolelogdir}"/* 2>/dev/null | tail -1 | sed 's/.*Version //')
localbuild=$(grep -i version "${consolelogdir}"/* | tail -1 | sed 's/.*[Vv]ersion //' | sed 's/\r//g' 2>/dev/null)
if [ -z "${localbuild}" ]; then
fn_print_error "Checking local build: ${remotelocation}"
fn_print_error_nl "Checking local build: ${remotelocation}: no log files containing version info"
Expand All @@ -49,7 +49,7 @@ fn_update_minecraft_localbuild(){
command_start.sh
fn_firstcommand_reset
totalseconds=0
localbuild=$(grep Version "${consolelogdir}"/* 2>/dev/null | tail -1 | sed 's/.*Version //')
localbuild=$(grep -i version "${consolelogdir}"/* | tail -1 | sed 's/.*[Vv]ersion //' | sed 's/\r//g' 2>/dev/null)
while [ -z "${localbuild}" ]; do
sleep 1
fn_print_info "Checking local build: ${remotelocation}: waiting for log file: ${totalseconds}"
Expand All @@ -58,7 +58,7 @@ fn_update_minecraft_localbuild(){
fn_script_log_info "Waiting for log file to generate"
fi

localbuild=$(grep Version "$(ls -tr "${consolelogdir}"/* 2>/dev/null)" | tail -1 | sed 's/.*Version //')
localbuild=$(grep -i version "${consolelogdir}"/* | tail -1 | sed 's/.*[Vv]ersion //' | sed 's/\r//g' 2>/dev/null)
if [ "${totalseconds}" -gt "120" ]; then
localbuild="0"
fn_print_error "Checking local build: ${remotelocation}: waiting for log file"
Expand Down Expand Up @@ -145,6 +145,7 @@ fn_update_minecraft_compare(){
command_start.sh
fn_firstcommand_reset
fi
unset exitbypass
date +%s > "${lockdir}/lastupdate.lock"
alert="update"
alert.sh
Expand Down
1 change: 1 addition & 0 deletions lgsm/functions/update_minecraft_bedrock.sh 100755 → 100644
Expand Up @@ -139,6 +139,7 @@ fn_update_minecraft_compare(){
command_start.sh
fn_firstcommand_reset
fi
unset exitbypass
date +%s > "${lockdir}/lastupdate.lock"
alert="update"
alert.sh
Expand Down
1 change: 1 addition & 0 deletions lgsm/functions/update_mta.sh 100755 → 100644
Expand Up @@ -168,6 +168,7 @@ fn_update_mta_compare(){
command_start.sh
fn_firstcommand_reset
fi
unset exitbypass
date +%s > "${lockdir}/lastupdate.lock"
alert="update"
alert.sh
Expand Down
1 change: 1 addition & 0 deletions lgsm/functions/update_mumble.sh 100755 → 100644
Expand Up @@ -104,6 +104,7 @@ fn_update_mumble_compare(){
command_start.sh
fn_firstcommand_reset
fi
unset exitbypass
date +%s > "${lockdir}/lastupdate.lock"
alert="update"
alert.sh
Expand Down
1 change: 1 addition & 0 deletions lgsm/functions/update_steamcmd.sh
Expand Up @@ -113,6 +113,7 @@ fn_update_steamcmd_compare(){
command_start.sh
fn_firstcommand_reset
fi
unset exitbypass
date +%s > "${lockdir}/lastupdate.lock"
alert="update"
alert.sh
Expand Down
1 change: 1 addition & 0 deletions lgsm/functions/update_ts3.sh 100755 → 100644
Expand Up @@ -166,6 +166,7 @@ fn_update_ts3_compare(){
command_start.sh
fn_firstcommand_reset
fi
unset exitbypass
date +%s > "${lockdir}/lastupdate.lock"
alert="update"
alert.sh
Expand Down
2 changes: 1 addition & 1 deletion linuxgsm.sh
Expand Up @@ -20,7 +20,7 @@ if [ -f ".dev-debug" ]; then
set -x
fi

version="v20.5.0"
version="v20.5.1"
shortname="core"
gameservername="core"
commandname="CORE"
Expand Down
2 changes: 1 addition & 1 deletion tests/tests_fctrserver.sh
Expand Up @@ -20,7 +20,7 @@ if [ -f ".dev-debug" ]; then
set -x
fi

version="v20.5.0"
version="v20.5.1"
shortname="fctr"
gameservername="fctrserver"
commandname="CORE"
Expand Down
2 changes: 1 addition & 1 deletion tests/tests_jc2server.sh
Expand Up @@ -20,7 +20,7 @@ if [ -f ".dev-debug" ]; then
set -x
fi

version="v20.5.0"
version="v20.5.1"
shortname="jc2"
gameservername="jc2server"
commandname="CORE"
Expand Down
2 changes: 1 addition & 1 deletion tests/tests_mcserver.sh
Expand Up @@ -20,7 +20,7 @@ if [ -f ".dev-debug" ]; then
set -x
fi

version="v20.5.0"
version="v20.5.1"
shortname="mc"
gameservername="mcserver"
commandname="CORE"
Expand Down
2 changes: 1 addition & 1 deletion tests/tests_ts3server.sh
Expand Up @@ -20,7 +20,7 @@ if [ -f ".dev-debug" ]; then
set -x
fi

version="v20.5.0"
version="v20.5.1"
shortname="ts3"
gameservername="ts3server"
commandname="CORE"
Expand Down

0 comments on commit 4179a77

Please sign in to comment.