Skip to content

Commit

Permalink
Merge branch 'hotfix/v21.2.5'
Browse files Browse the repository at this point in the history
  • Loading branch information
dgibbs64 committed Aug 6, 2021
2 parents c87a530 + 79b6056 commit 61ee050
Show file tree
Hide file tree
Showing 7 changed files with 11 additions and 8 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="v21.2.4"
modulesversion="v21.2.5"

# Core

Expand Down
7 changes: 5 additions & 2 deletions lgsm/functions/update_minecraft_bedrock.sh
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,11 @@

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

#random number for userAgent
randnum=$((1 + RANDOM % 5000))

fn_update_minecraft_dl(){
latestmcbuildurl=$(curl -Ls "https://www.minecraft.net/en-us/download/server/bedrock/" | grep -o 'https://minecraft.azureedge.net/bin-linux/[^"]*zip')
latestmcbuildurl=$(curl -H "Accept-Encoding: identity" -H "Accept-Language: en" -Ls -A "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/90.0.${randnum}.212 Safari/537.36" "https://www.minecraft.net/en-us/download/server/bedrock/" | grep -o 'https://minecraft.azureedge.net/bin-linux/[^"]*zip')
fn_fetch_file "${latestmcbuildurl}" "" "" "" "${tmpdir}" "bedrock_server.${remotebuild}.zip"
echo -e "Extracting to ${serverfiles}...\c"
if [ "${firstcommandname}" == "INSTALL" ]; then
Expand Down Expand Up @@ -79,7 +82,7 @@ fn_update_minecraft_localbuild(){

fn_update_minecraft_remotebuild(){
# Gets remote build info.
remotebuild=$(curl -Ls "https://www.minecraft.net/en-us/download/server/bedrock/" | grep -o 'https://minecraft.azureedge.net/bin-linux/[^"]*' | sed 's/.*\///' | grep -Eo "[.0-9]+[0-9]")
remotebuild=$(curl -H "Accept-Encoding: identity" -H "Accept-Language: en" -Ls -A "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/90.0.${randnum}.212 Safari/537.36" "https://www.minecraft.net/en-us/download/server/bedrock/" | grep -o 'https://minecraft.azureedge.net/bin-linux/[^"]*' | sed 's/.*\///' | grep -Eo "[.0-9]+[0-9]")
if [ "${firstcommandname}" != "INSTALL" ]; then
fn_print_dots "Checking remote build: ${remotelocation}"
# Checks if remotebuild variable has been set.
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="v21.2.4"
version="v21.2.5"
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="v21.2.4"
version="v21.2.5"
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="v21.2.4"
version="v21.2.5"
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="v21.2.4"
version="v21.2.5"
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="v21.2.4"
version="v21.2.5"
shortname="ts3"
gameservername="ts3server"
commandname="CORE"
Expand Down

0 comments on commit 61ee050

Please sign in to comment.