gameservergame-servergame-servershacktoberfestdedicated-game-serversgamelinuxgsmserverbashgaminglinuxmultiplayer-game-servershell
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
34 lines
1.2 KiB
34 lines
1.2 KiB
#!/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_print_dots "Applying ${fixname} fix: ${gamename}"
|
|
sleep 1
|
|
fn_print_info "Applying ${fixname} fix: ${gamename}"
|
|
fn_scriptlog "Applying ${fixname} fix: ${gamename}"
|
|
sleep 1
|
|
}
|
|
|
|
fn_msg_end(){
|
|
if [ $? -ne 0 ]; then
|
|
fn_print_fail_nl "Applying ${fixname} fix: ${gamename}"
|
|
fn_scriptlog "Failure! Applying ${fixname} fix: ${gamename}"
|
|
else
|
|
fn_print_ok_nl "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
|