4
0
Эх сурвалжийг харах

Added fix for when doesn't stay running

Alasdair Haig 6 жил өмнө
parent
commit
4918082e41

+ 5 - 0
lgsm/functions/core_functions.sh

@@ -465,6 +465,11 @@ functionfile="${FUNCNAME[0]}"
 fn_fetch_function
 fn_fetch_function
 }
 }
 
 
+fix_vh.sh(){
+functionfile="${FUNCNAME[0]}"
+fn_fetch_function
+}
+
 fix_wurm.sh(){
 fix_wurm.sh(){
 functionfile="${FUNCNAME[0]}"
 functionfile="${FUNCNAME[0]}"
 fn_fetch_function
 fn_fetch_function

+ 2 - 0
lgsm/functions/fix.sh

@@ -82,6 +82,8 @@ if [ "${commandname}" != "INSTALL" ]&&[ -z "${fixbypass}" ]; then
 		fix_mta.sh
 		fix_mta.sh
 	elif [ "${shortname}" == "unt" ]; then
 	elif [ "${shortname}" == "unt" ]; then
 		fix_unt.sh
 		fix_unt.sh
+	elif [ "${shortname}" == "vh" ]; then
+		fix_vh.sh
 	elif [ "${shortname}" == "wurm" ]; then
 	elif [ "${shortname}" == "wurm" ]; then
 		fix_wurm.sh
 		fix_wurm.sh
 	elif [ "${shortname}" == "zmr" ]; then
 	elif [ "${shortname}" == "zmr" ]; then

+ 9 - 0
lgsm/functions/fix_vh.sh

@@ -0,0 +1,9 @@
+#!/bin/bash
+# LinuxGSM fix_rust.sh function
+# Author: Alasdair Haig
+# Website: https://linuxgsm.com
+# Description: Resolves startup issue with Valheim
+
+functionselfname="$(basename "$(readlink -f "${BASH_SOURCE[0]}")")"
+
+export LD_LIBRARY_PATH=./linux64:$LD_LIBRARY_PATH