Skip to content

Commit f4e2ad1

Browse files
committed
Merge branch 'hotfix/v19.8.3'
2 parents ada1eab + 320fae5 commit f4e2ad1

File tree

5 files changed

+15
-15
lines changed

5 files changed

+15
-15
lines changed

lgsm/config-default/config-lgsm/untserver/_default.cfg

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,7 @@ glibc="2.15"
120120
## Server Specific Directories
121121
systemdir="${serverfiles}"
122122
executabledir="${serverfiles}"
123-
executable="./Unturned_Headless.x86"
123+
executable="./Unturned_Headless.x86_64"
124124
servercfgdir="${systemdir}/Servers/${servicename}"
125125
servercfg="Config.json"
126126
servercfgdefault="Config.json"

lgsm/functions/command_validate.sh

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,6 @@ fn_validation(){
2424

2525
if [ "${appid}" == "90" ]; then
2626
${unbuffer} ./steamcmd.sh +login "${steamuser}" "${steampass}" +force_install_dir "${serverfiles}" +app_info_print 70 +app_set_config 90 mod "${appidmod}" +app_update "${appid}" ${branch} +app_update "${appid}" ${branch} validate +quit | tee -a "${lgsmlog}"
27-
elif [ "${gamename}" == "Unturned" ]; then
28-
${unbuffer} ./steamcmd.sh +@sSteamCmdForcePlatformBitness 32 +login "${steamuser}" "${steampass}" +force_install_dir "${filesdir}" +app_update "${appid}" ${branch} validate +quit
2927
else
3028
${unbuffer} ./steamcmd.sh +login "${steamuser}" "${steampass}" +force_install_dir "${serverfiles}" +app_update "${appid}" ${branch} validate +quit | tee -a "${lgsmlog}"
3129
fi

lgsm/functions/fix_unt.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,5 +7,5 @@
77
local commandname="FIX"
88
local commandaction="Fix"
99

10-
# Fixes: [Raknet] Server Shutting Down (Shutting Down).
11-
export LD_LIBRARY_PATH="$LD_LIBRARY_PATH:${systemdir}/lib"
10+
# steamclient.so: cannot open shared object file: No such file or directory
11+
export LD_LIBRARY_PATH="${serverfiles}/linux64:${serverfiles}:$LD_LIBRARY_PATH"

lgsm/functions/update_steamcmd.sh

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,6 @@ fn_update_steamcmd_dl(){
2020
cd "${steamcmddir}" || exit
2121
if [ "${appid}" == "90" ]; then
2222
${unbuffer} ./steamcmd.sh +login "${steamuser}" "${steampass}" +force_install_dir "${serverfiles}" +app_set_config 90 mod "${appidmod}" +app_update "${appid}" ${branch} +quit | tee -a "${lgsmlog}"
23-
elif [ "${shortname}" == "unt" ]; then
24-
${unbuffer} ./steamcmd.sh +@sSteamCmdForcePlatformBitness 32 +login "${steamuser}" "${steampass}" +force_install_dir "${filesdir}" +app_update "${appid}" ${branch} validate +quit
2523
else
2624
${unbuffer} ./steamcmd.sh +login "${steamuser}" "${steampass}" +force_install_dir "${serverfiles}" +app_update "${appid}" ${branch} +quit | tee -a "${lgsmlog}"
2725
fi

linuxgsm.sh

Lines changed: 12 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ if [ -f ".dev-debug" ]; then
2020
set -x
2121
fi
2222

23-
version="v19.8.1"
23+
version="v19.8.3"
2424
shortname="core"
2525
gameservername="core"
2626
rootdir="$(dirname "$(readlink -f "${BASH_SOURCE[0]}")")"
@@ -258,6 +258,15 @@ fn_install_file(){
258258
exit
259259
}
260260

261+
fn_dl_serverlist(){
262+
# Download the latest serverlist. This is the complete list of all supported servers.
263+
fn_bootstrap_fetch_file_github "lgsm/data" "serverlist.csv" "${datadir}" "nochmodx" "norun" "forcedl" "nomd5"
264+
if [ ! -f "${serverlist}" ]; then
265+
echo "[ FAIL ] serverlist.csv could not be loaded."
266+
exit 1
267+
fi
268+
}
269+
261270
# Prevent LinuxGSM from running as root. Except if doing a dependency install.
262271
if [ "$(whoami)" == "root" ]; then
263272
if [ "${userinput}" == "install" ]||[ "${userinput}" == "auto-install" ]||[ "${userinput}" == "i" ]||[ "${userinput}" == "ai" ]; then
@@ -274,21 +283,16 @@ if [ "$(whoami)" == "root" ]; then
274283
fi
275284
fi
276285

277-
# Download the latest serverlist. This is the complete list of all supported servers.
278-
fn_bootstrap_fetch_file_github "lgsm/data" "serverlist.csv" "${datadir}" "nochmodx" "norun" "forcedl" "nomd5"
279-
if [ ! -f "${serverlist}" ]; then
280-
echo "[ FAIL ] serverlist.csv could not be loaded."
281-
exit 1
282-
fi
283-
284286
# LinuxGSM installer mode.
285287
if [ "${shortname}" == "core" ]; then
286288
if [ "${userinput}" == "list" ]||[ "${userinput}" == "l" ]; then
289+
fn_dl_serverlist
287290
{
288291
tail -n +2 "${serverlist}" | awk -F "," '{print $2 "\t" $3}'
289292
} | column -s $'\t' -t | more
290293
exit
291294
elif [ "${userinput}" == "install" ]||[ "${userinput}" == "i" ]; then
295+
fn_dl_serverlist
292296
tail -n +2 "${serverlist}" | awk -F "," '{print $1 "," $2 "," $3}' > "${serverlistmenu}"
293297
fn_install_menu result "LinuxGSM" "Select game server to install." "${serverlistmenu}"
294298
userinput="${result}"

0 commit comments

Comments
 (0)