From 97ee2d8d7ad7f7f42779742048cb432aab801ce7 Mon Sep 17 00:00:00 2001 From: Daniel Gibbs Date: Sat, 12 Mar 2016 23:47:41 +0000 Subject: [PATCH] Working on new glibc fixes --- lgsm/functions/fix_glibc.sh | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 lgsm/functions/fix_glibc.sh diff --git a/lgsm/functions/fix_glibc.sh b/lgsm/functions/fix_glibc.sh new file mode 100644 index 000000000..87b36db72 --- /dev/null +++ b/lgsm/functions/fix_glibc.sh @@ -0,0 +1,18 @@ +#!/bin/bash +# LGSM fix_glibc.sh function +# Author: Daniel Gibbs +# Website: http://gameservermanagers.com +lgsm_version="020116" + +info_glibc.sh + +if [ $(printf '%s\n$glibc_required\n' $glibc_version | sort -V | head -n 1) != $glibc_required ]; then + echo "Version $(ldd --version | sed -n '1s/.* //p') is lower than $glibc_required" + if [ ${glibcfix} == "yes" ]; then + export LD_LIBRARY_PATH=:${filesdir}:${filesdir}/bin:{$LD_LIBRARY_PATH} + else + echo "no glibc fix available you need to upgrade bro!!" + fi +else + echo "GLIBC is OK no fix required" +fi \ No newline at end of file