fix_glibc.sh 568 B

123456789101112131415161718
  1. #!/bin/bash
  2. # LGSM fix_glibc.sh function
  3. # Author: Daniel Gibbs
  4. # Website: http://gameservermanagers.com
  5. lgsm_version="020116"
  6. info_glibc.sh
  7. if [ $(printf '%s\n$glibc_required\n' $glibc_version | sort -V | head -n 1) != $glibc_required ]; then
  8. echo "Version $(ldd --version | sed -n '1s/.* //p') is lower than $glibc_required"
  9. if [ ${glibcfix} == "yes" ]; then
  10. export LD_LIBRARY_PATH=:${filesdir}:${filesdir}/bin:{$LD_LIBRARY_PATH}
  11. else
  12. echo "no glibc fix available you need to upgrade bro!!"
  13. fi
  14. else
  15. echo "GLIBC is OK no fix required"
  16. fi