fix.sh 1.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556
  1. #!/bin/bash
  2. # LGSM fix.sh function
  3. # Author: Daniel Gibbs
  4. # Website: http://gameservermanagers.com
  5. lgsm_version="020116"
  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}" == "Don't Starve Together" ]; then
  17. fix_dst.sh
  18. elif [ "${gamename}" == "Insurgency" ]; then
  19. fix_ins.sh
  20. elif [ "${gamename}" == "ARMA 3" ]; then
  21. fix_arma3.sh
  22. fi
  23. fi
  24. # Fixes that are run on install only.
  25. if [ "${function_selfname}" == "command_install.sh" ]; then
  26. fix_glibc.sh
  27. if [ "${gamename}" == "Killing Floor" ]; then
  28. echo ""
  29. echo "Applying ${gamename} Server Fixes"
  30. echo "================================="
  31. sleep 1
  32. fix_kf.sh
  33. elif [ "${gamename}" == "Red Orchestra: Ostfront 41-45" ]; then
  34. echo ""
  35. echo "Applying ${gamename} Server Fixes"
  36. echo "================================="
  37. sleep 1
  38. fix_ro.sh
  39. elif [ "${gamename}" == "Unreal Tournament 2004" ]; then
  40. echo ""
  41. echo "Applying ${gamename} Server Fixes"
  42. echo "================================="
  43. sleep 1
  44. fix_ut2k4.sh
  45. elif [ "${gamename}" == "Unreal Tournament 99" ]; then
  46. echo ""
  47. echo "Applying ${gamename} Server Fixes"
  48. echo "================================="
  49. sleep 1
  50. fix_ut99.sh
  51. fi
  52. fi