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

fix(ts3server): re-add support for libmariadb2 (#2114)

* fix(ts3server): re-add support for libmariadb2 #1924
Daniel Gibbs 7 лет назад
Родитель
Сommit
9bc5458898
3 измененных файлов с 21 добавлено и 0 удалено
  1. 5 0
      lgsm/functions/core_functions.sh
  2. 2 0
      lgsm/functions/fix.sh
  3. 14 0
      lgsm/functions/fix_ts3.sh

+ 5 - 0
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

+ 2 - 0
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

+ 14 - 0
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