diff --git a/DontStarveTogether/dependencies/libcurl-gnutls.so.4 b/DontStarveTogether/dependencies/libcurl-gnutls.so.4 deleted file mode 100644 index dd30a7707..000000000 Binary files a/DontStarveTogether/dependencies/libcurl-gnutls.so.4 and /dev/null differ diff --git a/functions/core_functions.sh b/functions/core_functions.sh index 66a99d52a..8af98c434 100644 --- a/functions/core_functions.sh +++ b/functions/core_functions.sh @@ -2,7 +2,7 @@ # LGSM core_functions.sh function # Author: Daniel Gibbs # Website: http://gameservermanagers.com -lgsm_version="271215" +lgsm_version="020216" # Description: Defines all functions to allow download and execution of functions using fn_runfunction. # This function is called first before any other function. Without this file other functions would not load. @@ -180,6 +180,11 @@ functionfile="${FUNCNAME}" fn_runfunction } +fix_dst.sh(){ +functionfile="${FUNCNAME}" +fn_runfunction +} + fix_ins.sh(){ functionfile="${FUNCNAME}" fn_runfunction diff --git a/functions/fix.sh b/functions/fix.sh index bad2a07f3..931f4acbe 100644 --- a/functions/fix.sh +++ b/functions/fix.sh @@ -2,7 +2,7 @@ # LGSM fix.sh function # Author: Daniel Gibbs # Website: http://gameservermanagers.com -lgsm_version="010116" +lgsm_version="020116" # Description: Overall function for managing fixes. # Runs functions that will fix an issue. @@ -16,6 +16,8 @@ if [ "${function_selfname}" != "command_install.sh" ]; then if [ "${gamename}" == "Counter Strike: Global Offensive" ]; then startfix=1 fix_csgo.sh + elif [ "${gamename}" == "Don't Starve Together" ]; then + fix_dst.sh elif [ "${gamename}" == "Insurgency" ]; then fix_ins.sh elif [ "${gamename}" == "ARMA 3" ]; then diff --git a/functions/fix_dst.sh b/functions/fix_dst.sh new file mode 100644 index 000000000..7a0028504 --- /dev/null +++ b/functions/fix_dst.sh @@ -0,0 +1,34 @@ +#!/bin/bash +# LGSM fix_dst.sh function +# Author: Daniel Gibbs +# Website: http://gameservermanagers.com +lgsm_version="020116" + +# Fixes line 63: 20150 Segmentation fault (core dumped) #488 + +fn_msg_start(){ + fn_printdots "Applying ${fixname} fix: ${gamename}" + sleep 1 + fn_printinfo "Applying ${fixname} fix: ${gamename}" + fn_scriptlog "Applying ${fixname} fix: ${gamename}" + sleep 1 +} + +fn_msg_end(){ + if [ $? -ne 0 ]; then + fn_printfailnl "Applying ${fixname} fix: ${gamename}" + fn_scriptlog "Failure! Applying ${fixname} fix: ${gamename}" + else + fn_printoknl "Applying ${fixname} fix: ${gamename}" + fn_scriptlog "Complete! Applying ${fixname} fix: ${gamename}" + fi +} + +# Fixes: ./dontstarve_dedicated_server_nullrenderer: ./lib32/libcurl-gnutls.so.4: no version information available (required by ./dontstarve_dedicated_server_nullrenderer) +# Issue only occures on CentOS as libcurl-gnutls.so.4 is called libcurl.so.4 on CentOS. +if [ -f "/etc/redhat-release" ] && [ ! -f "${filesdir}/bin/lib32/libcurl-gnutls.so.4" ]; then + local fixname="libcurl-gnutls.so.4 missing" + fn_msg_start + ln -s "/usr/lib/libcurl.so.4" "${filesdir}/bin/lib32/libcurl-gnutls.so.4" + fn_msg_end +fi \ No newline at end of file