Browse Source

Release v25.1.6

pull/4488/merge
Daniel Gibbs 3 weeks ago
parent
commit
2991f57635
  1. 2
      lgsm/modules/core_modules.sh
  2. 2
      lgsm/modules/core_steamcmd.sh
  3. 2
      lgsm/modules/update_fctr.sh
  4. 2
      lgsm/modules/update_jk2.sh
  5. 2
      lgsm/modules/update_mc.sh
  6. 19
      lgsm/modules/update_mcb.sh
  7. 2
      lgsm/modules/update_mta.sh
  8. 2
      lgsm/modules/update_pmc.sh
  9. 2
      lgsm/modules/update_ts3.sh
  10. 2
      lgsm/modules/update_ut99.sh
  11. 2
      lgsm/modules/update_vints.sh
  12. 2
      lgsm/modules/update_xnt.sh
  13. 2
      linuxgsm.sh

2
lgsm/modules/core_modules.sh

@ -8,7 +8,7 @@
moduleselfname="$(basename "$(readlink -f "${BASH_SOURCE[0]}")")" moduleselfname="$(basename "$(readlink -f "${BASH_SOURCE[0]}")")"
modulesversion="v25.1.5" modulesversion="v25.1.6"
# Core # Core

2
lgsm/modules/core_steamcmd.sh

@ -164,7 +164,7 @@ fn_update_steamcmd_localbuild() {
} }
fn_update_steamcmd_remotebuild() { fn_update_steamcmd_remotebuild() {
# Get remote build info. # Gets remote build info.
if [ -d "${steamcmddir}" ]; then if [ -d "${steamcmddir}" ]; then
cd "${steamcmddir}" || exit cd "${steamcmddir}" || exit
fi fi

2
lgsm/modules/update_fctr.sh

@ -34,7 +34,7 @@ fn_update_localbuild() {
} }
fn_update_remotebuild() { fn_update_remotebuild() {
# Get remote build info. # Gets remote build info.
apiurl="https://factorio.com/get-download/${branch}/headless/${factorioarch}" apiurl="https://factorio.com/get-download/${branch}/headless/${factorioarch}"
remotebuildresponse=$(curl -s "${apiurl}") remotebuildresponse=$(curl -s "${apiurl}")
remotebuildversion=$(echo "${remotebuildresponse}" | grep -o '[0-9]\.[0-9]\{1,\}\.[0-9]\{1,\}' | head -1) remotebuildversion=$(echo "${remotebuildresponse}" | grep -o '[0-9]\.[0-9]\{1,\}\.[0-9]\{1,\}' | head -1)

2
lgsm/modules/update_jk2.sh

@ -31,7 +31,7 @@ fn_update_localbuild() {
} }
fn_update_remotebuild() { fn_update_remotebuild() {
# Get remote build info. # Gets remote build info.
apiurl="https://api.github.com/repos/mvdevs/jk2mv/releases/latest" apiurl="https://api.github.com/repos/mvdevs/jk2mv/releases/latest"
remotebuildresponse=$(curl -s "${apiurl}") remotebuildresponse=$(curl -s "${apiurl}")
remotebuildfilename=$(echo "${remotebuildresponse}" | jq -r '.assets[]|select(.browser_download_url | contains("dedicated.zip")) | .name') remotebuildfilename=$(echo "${remotebuildresponse}" | jq -r '.assets[]|select(.browser_download_url | contains("dedicated.zip")) | .name')

2
lgsm/modules/update_mc.sh

@ -34,7 +34,7 @@ fn_update_localbuild() {
} }
fn_update_remotebuild() { fn_update_remotebuild() {
# Get remote build info. # Gets remote build info.
apiurl="https://launchermeta.mojang.com/mc/game/version_manifest.json" apiurl="https://launchermeta.mojang.com/mc/game/version_manifest.json"
remotebuildresponse=$(curl -s "${apiurl}") remotebuildresponse=$(curl -s "${apiurl}")
# Latest release. # Latest release.

19
lgsm/modules/update_mcb.sh

@ -38,7 +38,7 @@ fn_update_localbuild() {
# Gets local build info. # Gets local build info.
fn_print_dots "Checking local build: ${remotelocation}" fn_print_dots "Checking local build: ${remotelocation}"
# Uses log file to get local build. # Uses log file to get local build.
localbuild=$(grep Version "${consolelogdir}"/* 2> /dev/null | tail -1 | sed 's/.*Version: //' | tr -d '\000-\011\013-\037') localbuild=$(grep -hoP 'Version:\s*\K[\d.]+' "${consolelogdir}"/* 2> /dev/null | sort -V -r | head -n1)
if [ -z "${localbuild}" ]; then if [ -z "${localbuild}" ]; then
fn_print_error "Checking local build: ${remotelocation}: missing local build info" fn_print_error "Checking local build: ${remotelocation}: missing local build info"
fn_script_log_error "Missing local build info" fn_script_log_error "Missing local build info"
@ -51,15 +51,18 @@ fn_update_localbuild() {
} }
fn_update_remotebuild() { fn_update_remotebuild() {
# Random number for userAgent # Gets remote build info.
randomint=$(tr -dc 0-9 < /dev/urandom 2> /dev/null | head -c 4 | xargs) apiurl="https://net-secondary.web.minecraft-services.net/api/v1.0/download/links"
# Get remote build info. remotebuildresponse=$(curl -s "${apiurl}" | jq '.result.links[]')
if [ "${mcversion}" == "latest" ]; then # Latest preview.
remotebuildversion=$(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.${randomint}.212 Safari/537.36" "https://www.minecraft.net/en-us/download/server/bedrock/" | grep -o 'https://www.minecraft.net/bedrockdedicatedserver/bin-linux/[^"]*' | sed 's/.*\///' | grep -Eo "[.0-9]+[0-9]") if [ "${mcversion}" == "preview" ]; then
remotebuildurl=$(echo "${remotebuildresponse}" | jq -r 'select(.downloadType == "serverBedrockPreviewLinux") | .downloadUrl')
# Latest release.
else else
remotebuildversion="${mcversion}" remotebuildurl=$(echo "${remotebuildresponse}" | jq -r 'select(.downloadType == "serverBedrockLinux") | .downloadUrl')
fi fi
remotebuildurl="https://www.minecraft.net/bedrockdedicatedserver/bin-linux/bedrock-server-${remotebuildversion}.zip" remotebuildversion=$(echo "${remotebuildurl}" | grep -Eo "[.0-9]+[0-9]")
remotebuildfilename="bedrock-server-${remotebuildversion}.zip"
if [ "${firstcommandname}" != "INSTALL" ]; then if [ "${firstcommandname}" != "INSTALL" ]; then
fn_print_dots "Checking remote build: ${remotelocation}" fn_print_dots "Checking remote build: ${remotelocation}"

2
lgsm/modules/update_mta.sh

@ -34,7 +34,7 @@ fn_update_localbuild() {
} }
fn_update_remotebuild() { fn_update_remotebuild() {
# Get remote build info. # Gets remote build info.
apiurl="https://linux.multitheftauto.com/revision/latest.txt" apiurl="https://linux.multitheftauto.com/revision/latest.txt"
remotebuildresponse=$(curl -s "${apiurl}") remotebuildresponse=$(curl -s "${apiurl}")
remotebuildfilename="multitheftauto_linux_x64.tar.gz" remotebuildfilename="multitheftauto_linux_x64.tar.gz"

2
lgsm/modules/update_pmc.sh

@ -32,7 +32,7 @@ fn_update_localbuild() {
} }
fn_update_remotebuild() { fn_update_remotebuild() {
# Get remote build info. # Gets remote build info.
apiurl="https://api.papermc.io/v2/projects" apiurl="https://api.papermc.io/v2/projects"
# Get list of projects. # Get list of projects.
remotebuildresponse=$(curl -s "${apiurl}") remotebuildresponse=$(curl -s "${apiurl}")

2
lgsm/modules/update_ts3.sh

@ -31,7 +31,7 @@ fn_update_localbuild() {
} }
fn_update_remotebuild() { fn_update_remotebuild() {
# Get remote build info. # Gets remote build info.
apiurl="https://www.teamspeak.com/versions/server.json" apiurl="https://www.teamspeak.com/versions/server.json"
remotebuildresponse=$(curl -s "${apiurl}") remotebuildresponse=$(curl -s "${apiurl}")

2
lgsm/modules/update_ut99.sh

@ -32,7 +32,7 @@ fn_update_localbuild() {
} }
fn_update_remotebuild() { fn_update_remotebuild() {
# Get remote build info. # Gets remote build info.
apiurl="https://api.github.com/repos/OldUnreal/UnrealTournamentPatches/releases/latest" apiurl="https://api.github.com/repos/OldUnreal/UnrealTournamentPatches/releases/latest"
remotebuildresponse=$(curl -s "${apiurl}") remotebuildresponse=$(curl -s "${apiurl}")
remotebuildfilename=$(echo "${remotebuildresponse}" | jq -r '.assets[]|select(.browser_download_url | contains("Linux-amd64")) | .name') remotebuildfilename=$(echo "${remotebuildresponse}" | jq -r '.assets[]|select(.browser_download_url | contains("Linux-amd64")) | .name')

2
lgsm/modules/update_vints.sh

@ -34,7 +34,7 @@ fn_update_localbuild() {
} }
fn_update_remotebuild() { fn_update_remotebuild() {
# Get remote build info. # Gets remote build info.
apiurl="http://api.vintagestory.at/stable-unstable.json" apiurl="http://api.vintagestory.at/stable-unstable.json"
remotebuildresponse=$(curl -s "${apiurl}") remotebuildresponse=$(curl -s "${apiurl}")
if [ "${branch}" == "stable" ]; then if [ "${branch}" == "stable" ]; then

2
lgsm/modules/update_xnt.sh

@ -36,7 +36,7 @@ fn_update_localbuild() {
} }
fn_update_remotebuild() { fn_update_remotebuild() {
# Get remote build info. # Gets remote build info.
apiurl="https://api.github.com/repos/xonotic/xonotic/tags" apiurl="https://api.github.com/repos/xonotic/xonotic/tags"
remotebuildresponse=$(curl -s "${apiurl}") remotebuildresponse=$(curl -s "${apiurl}")
remotebuildtag=$(echo "${remotebuildresponse}" | jq -r '.[0].name') remotebuildtag=$(echo "${remotebuildresponse}" | jq -r '.[0].name')

2
linuxgsm.sh

@ -24,7 +24,7 @@ if [ -f ".dev-debug" ]; then
set -x set -x
fi fi
version="v25.1.5" version="v25.1.6"
shortname="core" shortname="core"
gameservername="core" gameservername="core"
commandname="CORE" commandname="CORE"

Loading…
Cancel
Save