Просмотр исходного кода

fix(fix): fix sof2 LD_LIBRARY_PATH and standardise usage (#2731)

Daniel Gibbs 6 лет назад
Родитель
Сommit
8a29dcc7aa

+ 1 - 1
lgsm/functions/fix_ins.sh

@@ -9,7 +9,7 @@ local commandaction="Fix"
 
 # Fixes: ./srcds_linux: error while loading shared libraries: libtier0.so: cannot open shared object file: No such file or directory.
 
-export LD_LIBRARY_PATH=${serverfiles}:${serverfiles}/bin:${LD_LIBRARY_PATH}
+export LD_LIBRARY_PATH="$LD_LIBRARY_PATH:${serverfiles}:${serverfiles}/bin"
 
 # Fixes: issue #529 - gamemode not passed to debug or start.
 

+ 1 - 1
lgsm/functions/fix_mcb.sh

@@ -8,4 +8,4 @@ local modulename="FIX"
 local commandaction="Fix"
 
 # official docs state that the server should be started with: LD_LIBRARY_PATH=. ./bedrock_server
-export LD_LIBRARY_PATH="${serverfiles}:$LD_LIBRARY_PATH"
+export LD_LIBRARY_PATH="$LD_LIBRARY_PATH:${serverfiles}"

+ 1 - 1
lgsm/functions/fix_onset.sh

@@ -8,7 +8,7 @@ local modulename="FIX"
 local commandaction="Fix"
 local function_selfname=$(basename "$(readlink -f "${BASH_SOURCE[0]}")")
 
-export LD_LIBRARY_PATH="${serverfiles}:$LD_LIBRARY_PATH"
+export LD_LIBRARY_PATH="$LD_LIBRARY_PATH:${serverfiles}"
 
 # Fixes: Failed loading "mariadb": libmariadbclient.so.18: cannot open shared object file: No such file or directory
 # Issue only occures on CentOS as libmariadbclient.so.18 is called libmariadb.so.3 on CentOS.

+ 1 - 1
lgsm/functions/fix_rw.sh

@@ -7,4 +7,4 @@
 local modulename="FIX"
 local commandaction="Fix"
 
-export LD_LIBRARY_PATH="${serverfiles}/linux64:${serverfiles}:$LD_LIBRARY_PATH"
+export LD_LIBRARY_PATH="$LD_LIBRARY_PATH:${serverfiles}:${serverfiles}/linux64"

+ 1 - 1
lgsm/functions/fix_sdtd.sh

@@ -7,4 +7,4 @@
 local modulename="FIX"
 local commandaction="Fix"
 
-export LD_LIBRARY_PATH="${serverfiles}"
+export LD_LIBRARY_PATH="$LD_LIBRARY_PATH:${serverfiles}"

+ 1 - 1
lgsm/functions/fix_sof2.sh

@@ -8,4 +8,4 @@ local modulename="FIX"
 local commandaction="Fix"
 
 # Fixes: error while loading shared libraries: libcxa.so.1
-export LD_LIBRARY_PATH=":$LD_LIBRARY_PATH"
+export LD_LIBRARY_PATH="$LD_LIBRARY_PATH:${serverfiles}"

+ 1 - 1
lgsm/functions/fix_unt.sh

@@ -8,4 +8,4 @@ local modulename="FIX"
 local commandaction="Fix"
 
 # steamclient.so: cannot open shared object file: No such file or directory
-export LD_LIBRARY_PATH="${serverfiles}/linux64:${serverfiles}:$LD_LIBRARY_PATH"
+export LD_LIBRARY_PATH="$LD_LIBRARY_PATH:${serverfiles}:${serverfiles}/linux64"