fix_cmw.sh 939 B

123456789101112131415161718192021222324252627282930313233
  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. if [ ! -f "${executabledir}/lib/steamclient.so" ]; then
  13. fixname="steamclient.so"
  14. fn_fix_msg_start
  15. if [ -f "${HOME}/.steam/steamcmd/linux32/steamclient.so" ]; then
  16. cp "${steamcmddir}/linux32/steamclient.so" "${executabledir}/lib/steamclient.so"
  17. elif [ -f "${steamcmddir}/linux32/steamclient.so" ]; then
  18. cp "${steamcmddir}/linux32/steamclient.so" "${executabledir}/lib/steamclient.so"
  19. fi
  20. fn_fix_msg_end
  21. fi
  22. if [ ! -f "${servercfgfullpath}" ]; then
  23. fn_fix_msg_start
  24. fixname="copy config"
  25. mkdir "${servercfgdir}"
  26. cp "${systemdir}/UDKGame/Config/"*.ini "${servercfgdir}"
  27. fn_fix_msg_end
  28. fi