From 9bc5458898208ab081dee496f9c6f665aa63ae3d Mon Sep 17 00:00:00 2001 From: Daniel Gibbs Date: Sat, 15 Dec 2018 00:01:29 +0000 Subject: [PATCH] fix(ts3server): re-add support for libmariadb2 (#2114) * fix(ts3server): re-add support for libmariadb2 #1924 --- lgsm/functions/core_functions.sh | 5 +++++ lgsm/functions/fix.sh | 2 ++ lgsm/functions/fix_ts3.sh | 14 ++++++++++++++ 3 files changed, 21 insertions(+) create mode 100644 lgsm/functions/fix_ts3.sh diff --git a/lgsm/functions/core_functions.sh b/lgsm/functions/core_functions.sh index 416835504..6aef2fca4 100644 --- a/lgsm/functions/core_functions.sh +++ b/lgsm/functions/core_functions.sh @@ -378,6 +378,11 @@ functionfile="${FUNCNAME}" fn_fetch_function } +fix_ts3.sh(){ +functionfile="${FUNCNAME}" +fn_fetch_function +} + fix_ut2k4.sh(){ functionfile="${FUNCNAME}" fn_fetch_function diff --git a/lgsm/functions/fix.sh b/lgsm/functions/fix.sh index dfa9fde78..739a27a7c 100644 --- a/lgsm/functions/fix.sh +++ b/lgsm/functions/fix.sh @@ -60,6 +60,8 @@ if [ "${function_selfname}" != "command_install.sh" ]&&[ -z "${fixbypass}" ]; th fix_rw.sh elif [ "${shortname}" == "ss3" ]; then fix_ss3.sh + elif [ "${shortname}" == "ts3" ]; then + fix_ts3.sh elif [ "${shortname}" == "mta" ]; then fix_mta.sh elif [ "${shortname}" == "wurm" ]; then diff --git a/lgsm/functions/fix_ts3.sh b/lgsm/functions/fix_ts3.sh new file mode 100644 index 000000000..fd28a90bd --- /dev/null +++ b/lgsm/functions/fix_ts3.sh @@ -0,0 +1,14 @@ +#!/bin/bash +# LinuxGSM fix_ts3.sh function +# Author: Daniel Gibbs +# Website: https://linuxgsm.com +# Description: Resolves various issues with Teamspeak 3. + +local commandname="FIX" +local commandaction="Fix" +local function_selfname="$(basename "$(readlink -f "${BASH_SOURCE[0]}")")" + +# Fixes: makes libmariadb2 available #1924 +if [ ! -f "${serverfiles}/libmariadb.so.2" ]; then + ln -s "${serverfiles}/redist/libmariadb.so.2" "${serverfiles}/libmariadb.so.2" +fi \ No newline at end of file