fix_cmw.sh 1010 B

12345678910111213141516171819202122232425262728293031323334
  1. #!/bin/bash
  2. # LinuxGSM fix_cmw.sh function
  3. # Author: Christian Birk
  4. # Website: https://linuxgsm.com
  5. # Description: Resolves the issue of the not starting server on linux
  6. fixname="steam_appid.txt"
  7. if [ ! -f "${executabledir}/steam_appid.txt" ]; then
  8. fn_fix_msg_start
  9. echo 219640 > "${executabledir}/steam_appid.txt"
  10. fn_fix_msg_end
  11. fi
  12. # steamclient.so x86 fix.
  13. if [ ! -f "${executabledir}/lib/steamclient.so" ]; then
  14. fixname="steamclient.so x86"
  15. fn_fix_msg_start
  16. mkdir -p "${executabledir}/lib"
  17. if [ -f "${HOME}/.steam/steamcmd/linux32/steamclient.so" ]; then
  18. cp "${HOME}/.steam/steamcmd/linux32/steamclient.so" "${executabledir}/lib/steamclient.so"
  19. elif [ -f "${steamcmddir}/linux32/steamclient.so" ]; then
  20. cp "${steamcmddir}/linux32/steamclient.so" "${executabledir}/lib/steamclient.so"
  21. fi
  22. fn_fix_msg_end
  23. fi
  24. if [ ! -f "${servercfgfullpath}" ]; then
  25. fn_fix_msg_start
  26. fixname="copy config"
  27. mkdir "${servercfgdir}"
  28. cp "${systemdir}/UDKGame/Config/"*.ini "${servercfgdir}"
  29. fn_fix_msg_end
  30. fi