소스 검색

fix(terraria): add fix preventing server from starting (#2317)

Daniel Gibbs 7 년 전
부모
커밋
cd36a1efd9
3개의 변경된 파일18개의 추가작업 그리고 0개의 파일을 삭제
  1. 5 0
      lgsm/functions/core_functions.sh
  2. 2 0
      lgsm/functions/fix.sh
  3. 11 0
      lgsm/functions/fix_terraria.sh

+ 5 - 0
lgsm/functions/core_functions.sh

@@ -357,6 +357,11 @@ functionfile="${FUNCNAME}"
 fn_fetch_function
 }
 
+fix_terraria.sh(){
+functionfile="${FUNCNAME}"
+fn_fetch_function
+}
+
 fix_tf2.sh(){
 functionfile="${FUNCNAME}"
 fn_fetch_function

+ 2 - 0
lgsm/functions/fix.sh

@@ -63,6 +63,8 @@ if [ "${function_selfname}" != "command_install.sh" ]&&[ -z "${fixbypass}" ]; th
 		fix_ss3.sh
 	elif [ "${shortname}" == "tf2" ]; then
 		fix_tf2.sh
+	elif [ "${shortname}" == "terraria" ]; then
+		fix_terraria.sh
 	elif [ "${shortname}" == "ts3" ]; then
 		fix_ts3.sh
 	elif [ "${shortname}" == "mta" ]; then

+ 11 - 0
lgsm/functions/fix_terraria.sh

@@ -0,0 +1,11 @@
+#!/bin/bash
+# LinuxGSM fix_terraria.sh function
+# Author: Daniel Gibbs
+# Website: https://linuxgsm.com
+# Description: Resolves an issue with Terraria.
+
+local commandname="FIX"
+local commandaction="Fix"
+local function_selfname="$(basename "$(readlink -f "${BASH_SOURCE[0]}")")"
+
+export TERM=xterm