Browse Source

fixed line endings

pull/820/merge
Daniel Gibbs 9 years ago
parent
commit
fb38ef5ad0
  1. 35
      lgsm/functions/fix_glibc.sh

35
lgsm/functions/fix_glibc.sh

@ -1,18 +1,19 @@
#!/bin/bash #!/bin/bash
# LGSM fix_glibc.sh function # LGSM fix_glibc.sh function
# Author: Daniel Gibbs # Author: Daniel Gibbs
# Website: http://gameservermanagers.com # Website: http://gameservermanagers.com
lgsm_version="020116" lgsm_version="020116"
info_glibc.sh info_glibc.sh
if [ $(printf '%s\n$glibc_required\n' $glibc_version | sort -V | head -n 1) != $glibc_required ]; then 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" echo "Version $(ldd --version | sed -n '1s/.* //p') is lower than $glibc_required"
if [ ${glibcfix} == "yes" ]; then if [ "${glibcfix}" == "yes" ]; then
export LD_LIBRARY_PATH=:${lgsmdir}/lib/ubuntu12.04/i386 echo "applied glibc fix"
else export LD_LIBRARY_PATH=:${lgsmdir}/lib/ubuntu12.04/i386
echo "no glibc fix available you need to upgrade bro!!" else
fi echo "no glibc fix available you need to upgrade bro!!"
else fi
echo "GLIBC is OK no fix required" else
echo "GLIBC is OK no fix required"
fi fi
Loading…
Cancel
Save