Skip to content

Commit

Permalink
Merge branch 'hotfix/v23.2.3'
Browse files Browse the repository at this point in the history
  • Loading branch information
dgibbs64 committed Apr 9, 2023
2 parents 858184c + 38c810d commit a668885
Show file tree
Hide file tree
Showing 14 changed files with 23 additions and 20 deletions.
2 changes: 1 addition & 1 deletion lgsm/functions/core_functions.sh
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@

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

modulesversion="v23.2.2"
modulesversion="v23.2.3"

# Core

Expand Down
2 changes: 1 addition & 1 deletion lgsm/functions/update_factorio.sh
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
functionselfname="$(basename "$(readlink -f "${BASH_SOURCE[0]}")")"

fn_update_dl() {
# Download and extract files to serverfiles
# Download and extract files to serverfiles.
fn_fetch_file "${remotebuildurl}" "" "" "" "${tmpdir}" "${remotebuildfilename}" "nochmodx" "norun" "force" "nohash"
fn_dl_extract "${tmpdir}" "factorio_headless_${factorioarch}-${remotebuildversion}.tar.xz" "${serverfiles}" "factorio"
fn_clear_tmp
Expand Down
2 changes: 1 addition & 1 deletion lgsm/functions/update_jediknight2.sh
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
functionselfname="$(basename "$(readlink -f "${BASH_SOURCE[0]}")")"

fn_update_dl() {
# Download and extract files to serverfiles
# Download and extract files to serverfiles.
fn_fetch_file "${remotebuildurl}" "" "" "" "${tmpdir}" "${remotebuildfilename}" "nochmodx" "norun" "force" "nohash"
fn_dl_extract "${tmpdir}" "${remotebuildfilename}" "${serverfiles}/GameData" "linux-amd64"
fn_clear_tmp
Expand Down
6 changes: 4 additions & 2 deletions lgsm/functions/update_minecraft.sh
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,9 @@
functionselfname="$(basename "$(readlink -f "${BASH_SOURCE[0]}")")"

fn_update_dl() {
# Download and extract files to serverfiles
fn_fetch_file "${remotebuildurl}" "" "" "" "${serverfiles}" "minecraft_server.jar" "chmodx" "norun" "noforce" "nohash"
# Download and extract files to serverfiles.
fn_fetch_file "${remotebuildurl}" "" "" "" "${tmpdir}" "${remotebuildfilename}" "chmodx" "norun" "noforce" "nohash"
cp -f "${tmpdir}/${remotebuildfilename}" "${serverfiles}/${executable#./}"
}

fn_update_localbuild() {
Expand Down Expand Up @@ -45,6 +46,7 @@ fn_update_remotebuild() {
else
remotebuildversion=$(echo "${remotebuildresponse}" | jq -r --arg branch "${branch}" --arg mcversion "${mcversion}" '.versions | .[] | select(.type==$branch and .id==$mcversion) | .id')
fi
remotebuildfilename="minecraft_server.${remotebuildversion}.jar"
# Generate link to version manifest json.
remotebuildmanifest=$(echo "${remotebuildresponse}" | jq -r --arg branch "${branch}" --arg mcversion "${remotebuildversion}" '.versions | .[] | select(.type==$branch and .id==$mcversion) | .url')
# Generate link to server.jar
Expand Down
2 changes: 1 addition & 1 deletion lgsm/functions/update_minecraft_bedrock.sh
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
functionselfname="$(basename "$(readlink -f "${BASH_SOURCE[0]}")")"

fn_update_dl() {
fn_fetch_file "${remotebuildurl}" "" "" "" "${tmpdir}" "bedrock_server.${remotebuildversion}.zip"
fn_fetch_file "${remotebuildurl}" "" "" "" "${tmpdir}" "bedrock_server.${remotebuildversion}.zip" "nochmodx" "norun" "noforce" "nohash"
echo -e "Extracting to ${serverfiles}...\c"
if [ "${firstcommandname}" == "INSTALL" ]; then
unzip -oq "${tmpdir}/bedrock_server.${remotebuildversion}.zip" -x "server.properties" -d "${serverfiles}"
Expand Down
11 changes: 6 additions & 5 deletions lgsm/functions/update_papermc.sh
Original file line number Diff line number Diff line change
Expand Up @@ -8,16 +8,17 @@
functionselfname="$(basename "$(readlink -f "${BASH_SOURCE[0]}")")"

fn_update_dl() {
# Download and extract files to serverfiles
fn_fetch_file "${remotebuildurl}" "" "" "" "${serverfiles}" "${executable#./}" "chmodx" "norun" "force" "${remotebuildhash}"
# Download and extract files to serverfiles.
fn_fetch_file "${remotebuildurl}" "" "" "" "${tmpdir}" "${remotebuildfilename}" "chmodx" "norun" "force" "${remotebuildhash}"
cp -f "${tmpdir}/${remotebuildfilename}" "${serverfiles}/${executable#./}"
echo "${remotebuildversion}" > "${serverfiles}/build.txt"
}

fn_update_localbuild() {
# Gets local build info.
fn_print_dots "Checking local build: ${remotelocation}"
# Uses version file to get local build.
localbuild=$(head -n 1 "${serverfiles}/build.txt")
# Uses build file to get local build.
localbuild=$(head -n 1 "${serverfiles}/build.txt" 2> /dev/null)
if [ -z "${localbuild}" ]; then
fn_print_error "Checking local build: ${remotelocation}: missing local build info"
fn_script_log_error "Missing local build info"
Expand All @@ -31,7 +32,7 @@ fn_update_localbuild() {

fn_update_remotebuild() {
# Get remote build info.
apiurl="https://papermc.io/api/v2/projects/"
apiurl="https://papermc.io/api/v2/projects"
# Get list of projects.
remotebuildresponse=$(curl -s "${apiurl}")
# Get list of Minecraft versions for project.
Expand Down
2 changes: 1 addition & 1 deletion lgsm/functions/update_ts3.sh
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
functionselfname="$(basename "$(readlink -f "${BASH_SOURCE[0]}")")"

fn_update_dl() {
# Download and extract files to serverfiles
# Download and extract files to serverfiles.
fn_fetch_file "${remotebuildurl}" "" "" "" "${tmpdir}" "${remotebuildfilename}" "nochmodx" "norun" "force" "${remotebuildhash}"
fn_dl_extract "${tmpdir}" "${remotebuildfilename}" "${serverfiles}" "teamspeak3-server_linux_${ts3arch}"
fn_clear_tmp
Expand Down
4 changes: 2 additions & 2 deletions lgsm/functions/update_ut99.sh
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
functionselfname="$(basename "$(readlink -f "${BASH_SOURCE[0]}")")"

fn_update_dl() {
# Download and extract files to serverfiles
# Download and extract files to serverfiles.
fn_fetch_file "${remotebuildurl}" "" "" "" "${tmpdir}" "${remotebuildfilename}" "nochmodx" "norun" "force" "nohash"
fn_dl_extract "${tmpdir}" "${remotebuildfilename}" "${serverfiles}"
echo "${remotebuildversion}" > "${serverfiles}/build.txt"
Expand All @@ -19,7 +19,7 @@ fn_update_localbuild() {
# Gets local build info.
fn_print_dots "Checking local build: ${remotelocation}"
# Uses build file to get local build.
localbuild=$(head -n 1 "${serverfiles}/build.txt")
localbuild=$(head -n 1 "${serverfiles}/build.txt" 2> /dev/null)
if [ -z "${localbuild}" ]; then
fn_print_error "Checking local build: ${remotelocation}: missing local build info"
fn_script_log_error "Missing local build info"
Expand Down
2 changes: 1 addition & 1 deletion lgsm/functions/update_vintagestory.sh
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
functionselfname="$(basename "$(readlink -f "${BASH_SOURCE[0]}")")"

fn_update_dl() {
# Download and extract files to serverfiles
# Download and extract files to serverfiles.
fn_fetch_file "${remotebuildurl}" "" "" "" "${tmpdir}" "${remotebuildfilename}" "nochmodx" "norun" "force" "${remotebuildhash}"
fn_dl_extract "${tmpdir}" "${remotebuildfilename}" "${serverfiles}"
fn_clear_tmp
Expand Down
2 changes: 1 addition & 1 deletion linuxgsm.sh
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ if [ -f ".dev-debug" ]; then
set -x
fi

version="v23.2.2"
version="v23.2.3"
shortname="core"
gameservername="core"
commandname="CORE"
Expand Down
2 changes: 1 addition & 1 deletion tests/tests_fctrserver.sh
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ if [ -f ".dev-debug" ]; then
set -x
fi

version="v23.2.2"
version="v23.2.3"
shortname="fctr"
gameservername="fctrserver"
commandname="CORE"
Expand Down
2 changes: 1 addition & 1 deletion tests/tests_jc2server.sh
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ if [ -f ".dev-debug" ]; then
set -x
fi

version="v23.2.2"
version="v23.2.3"
shortname="jc2"
gameservername="jc2server"
commandname="CORE"
Expand Down
2 changes: 1 addition & 1 deletion tests/tests_mcserver.sh
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ if [ -f ".dev-debug" ]; then
set -x
fi

version="v23.2.2"
version="v23.2.3"
shortname="mc"
gameservername="mcserver"
commandname="CORE"
Expand Down
2 changes: 1 addition & 1 deletion tests/tests_ts3server.sh
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ if [ -f ".dev-debug" ]; then
set -x
fi

version="v23.2.2"
version="v23.2.3"
shortname="ts3"
gameservername="ts3server"
commandname="CORE"
Expand Down

0 comments on commit a668885

Please sign in to comment.