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

Added fix for when doesn't stay running

Alasdair Haig 6 лет назад
Родитель
Сommit
4918082e41
3 измененных файлов с 16 добавлено и 0 удалено
  1. 5 0
      lgsm/functions/core_functions.sh
  2. 2 0
      lgsm/functions/fix.sh
  3. 9 0
      lgsm/functions/fix_vh.sh

+ 5 - 0
lgsm/functions/core_functions.sh

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

+ 2 - 0
lgsm/functions/fix.sh

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