fix.sh 1.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. #!/bin/bash
  2. # LGSM fix.sh function
  3. # Author: Daniel Gibbs
  4. # Website: http://gameservermanagers.com
  5. lgsm_version="301215"
  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. echo ""
  26. echo "Applying ${gamename} Server Fixes"
  27. echo "================================="
  28. sleep 1
  29. if [ "${gamename}" == "Killing Floor" ]; then
  30. fix_kf.sh
  31. elif [ "${gamename}" == "Red Orchestra: Ostfront 41-45" ]; then
  32. fix_ro.sh
  33. elif [ "${gamename}" == "Unreal Tournament 2004" ]; then
  34. fix_ut2k4.sh
  35. elif [ "${gamename}" == "Unreal Tournament 99" ]; then
  36. fix_ut99.sh
  37. fi
  38. fi