From cd36a1efd99d3ab61fd08d055b86cd769bb1a9a7 Mon Sep 17 00:00:00 2001 From: Daniel Gibbs Date: Sat, 27 Apr 2019 22:32:21 +0100 Subject: [PATCH] fix(terraria): add fix preventing server from starting (#2317) --- lgsm/functions/core_functions.sh | 5 +++++ lgsm/functions/fix.sh | 2 ++ lgsm/functions/fix_terraria.sh | 11 +++++++++++ 3 files changed, 18 insertions(+) create mode 100644 lgsm/functions/fix_terraria.sh diff --git a/lgsm/functions/core_functions.sh b/lgsm/functions/core_functions.sh index ad82b2186..b6f139ca1 100644 --- a/lgsm/functions/core_functions.sh +++ b/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 diff --git a/lgsm/functions/fix.sh b/lgsm/functions/fix.sh index 3eae6c91d..ba83b9820 100644 --- a/lgsm/functions/fix.sh +++ b/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 diff --git a/lgsm/functions/fix_terraria.sh b/lgsm/functions/fix_terraria.sh new file mode 100644 index 000000000..1a898d046 --- /dev/null +++ b/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