fix_mta.sh 682 B

12345678910111213141516171819
  1. #!/bin/bash
  2. # LinuxGSM fix_mta.sh function
  3. # Author: Daniel Gibbs
  4. # Contributor: ChaosMTA
  5. # Website: https://linuxgsm.com
  6. # Description: Installs the libmysqlclient for database functions on the server
  7. local commandname="FIX"
  8. local commandaction="Fix"
  9. local function_selfname="$(basename "$(readlink -f "${BASH_SOURCE[0]}")")"
  10. if [ ! -f "${lgsmdir}/lib/libmysqlclient.so.16" ]; then
  11. fixname="libmysqlclient16"
  12. fn_fix_msg_start_nl
  13. sleep 0.5
  14. fn_fetch_file "https://nightly.mtasa.com/files/modules/64/libmysqlclient.so.16" "${lgsmdir}/lib" "libmysqlclient.so.16" "chmodx" "norun" "noforce" "6c188e0f8fb5d7a29f4bc413b9fed6c2"
  15. fn_fix_msg_end
  16. fi
  17. export LD_LIBRARY_PATH=:"${libdir}"