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.
20 lines
816 B
20 lines
816 B
#!/bin/bash
|
|
# LinuxGSM fix_onset.sh function
|
|
# Author: Frédéric C.
|
|
# Website: https://linuxgsm.com
|
|
# Description: Resolves various issues with Onset
|
|
|
|
local modulename="FIX"
|
|
local commandaction="Fix"
|
|
local function_selfname=$(basename "$(readlink -f "${BASH_SOURCE[0]}")")
|
|
|
|
export LD_LIBRARY_PATH="${serverfiles}:$LD_LIBRARY_PATH"
|
|
|
|
# Fixes: Failed loading "mariadb": libmariadbclient.so.18: cannot open shared object file: No such file or directory
|
|
# Issue only occures on CentOS as libmariadbclient.so.18 is called libmariadb.so.3 on CentOS.
|
|
if [ -f "/etc/redhat-release" ]&&[ ! -f "${serverfiles}/libmariadbclient.so.18" ]&&[ -f "/usr/lib64/libmariadb.so.3" ]; then
|
|
fixname="libmariadbclient.so.18"
|
|
fn_fix_msg_start
|
|
ln -s "/usr/lib64/libmariadb.so.3" "${serverfiles}/libmariadbclient.so.18"
|
|
fn_fix_msg_end
|
|
fi
|
|
|