fix.sh 1.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354
  1. #!/bin/bash
  2. # LGSM fix.sh function
  3. # Author: Daniel Gibbs
  4. # Website: http://gameservermanagers.com
  5. lgsm_version="010116"
  6. # Description: Overall function for managing fixes.
  7. # Runs functions that will fix an issue.
  8. # Fixes that are run on start
  9. if [ "${function_selfname}" != "command_install.sh" ]; then
  10. if [ ! -z "${appid}" ]; then
  11. fix_steamcmd.sh
  12. fi
  13. if [ "${gamename}" == "Counter Strike: Global Offensive" ]; then
  14. startfix=1
  15. fix_csgo.sh
  16. elif [ "${gamename}" == "Insurgency" ]; then
  17. fix_ins.sh
  18. elif [ "${gamename}" == "ARMA 3" ]; then
  19. fix_arma3.sh
  20. fi
  21. fi
  22. # Fixes that are run on install only.
  23. if [ "${function_selfname}" == "command_install.sh" ]; then
  24. fix_glibc.sh
  25. if [ "${gamename}" == "Killing Floor" ]; then
  26. echo ""
  27. echo "Applying ${gamename} Server Fixes"
  28. echo "================================="
  29. sleep 1
  30. fix_kf.sh
  31. elif [ "${gamename}" == "Red Orchestra: Ostfront 41-45" ]; then
  32. echo ""
  33. echo "Applying ${gamename} Server Fixes"
  34. echo "================================="
  35. sleep 1
  36. fix_ro.sh
  37. elif [ "${gamename}" == "Unreal Tournament 2004" ]; then
  38. echo ""
  39. echo "Applying ${gamename} Server Fixes"
  40. echo "================================="
  41. sleep 1
  42. fix_ut2k4.sh
  43. elif [ "${gamename}" == "Unreal Tournament 99" ]; then
  44. echo ""
  45. echo "Applying ${gamename} Server Fixes"
  46. echo "================================="
  47. sleep 1
  48. fix_ut99.sh
  49. fi
  50. fi