From a7a8e381526a81b60d855fffc575d42ccb382a05 Mon Sep 17 00:00:00 2001 From: Daniel Gibbs Date: Mon, 12 Aug 2024 14:07:01 +0100 Subject: [PATCH 1/2] fix(gamedig): ensure that node modules are valid --- lgsm/modules/check_gamedig.sh | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/lgsm/modules/check_gamedig.sh b/lgsm/modules/check_gamedig.sh index 4155e6a698..8abc0b759d 100644 --- a/lgsm/modules/check_gamedig.sh +++ b/lgsm/modules/check_gamedig.sh @@ -10,6 +10,10 @@ if [ "$(command -v node)" ] && [ "$(node -v | cut -d 'v' -f 2 | cut -d '.' -f 1) echo -e "${bold}${lightyellow}Installing Gamedig${default}" fn_script_log_info "Installing Gamedig" cd "${lgsmdir}" || exit - wget -N --no-check-certificate "https://raw.githubusercontent.com/GameServerManagers/LinuxGSM/${githubbranch}/package.json" + curl -L -o package.json "https://raw.githubusercontent.com/GameServerManagers/LinuxGSM/${githubbranch}/package.json" npm install +elif [ "$(command -v node)" ] && [ "$(node -v | cut -d 'v' -f 2 | cut -d '.' -f 1)" -ge 16 ]; then + cd "${lgsmdir}" || exit + curl -s -L -o package.json "https://raw.githubusercontent.com/GameServerManagers/LinuxGSM/${githubbranch}/package.json" + npm update > /dev/null 2>&1 fi From 23b342296c31a65f971ad2c562154a0519650214 Mon Sep 17 00:00:00 2001 From: Daniel Gibbs Date: Mon, 12 Aug 2024 14:23:50 +0100 Subject: [PATCH 2/2] Release v24.2.3 --- lgsm/modules/core_modules.sh | 2 +- linuxgsm.sh | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/lgsm/modules/core_modules.sh b/lgsm/modules/core_modules.sh index 730fe58b7d..dbcec4f6f4 100644 --- a/lgsm/modules/core_modules.sh +++ b/lgsm/modules/core_modules.sh @@ -8,7 +8,7 @@ moduleselfname="$(basename "$(readlink -f "${BASH_SOURCE[0]}")")" -modulesversion="v24.2.2" +modulesversion="v24.2.3" # Core diff --git a/linuxgsm.sh b/linuxgsm.sh index bafc8a3a0f..eafb874063 100755 --- a/linuxgsm.sh +++ b/linuxgsm.sh @@ -24,7 +24,7 @@ if [ -f ".dev-debug" ]; then set -x fi -version="v24.2.2" +version="v24.2.3" shortname="core" gameservername="core" commandname="CORE"