fix_ut2k4.sh 932 B

1234567891011121314151617181920212223242526272829
  1. #!/bin/bash
  2. # LGSM fix_ut2k4.sh function
  3. # Author: Daniel Gibbs
  4. # Website: https://gameservermanagers.com
  5. # Description: Resolves various issues with Unreal Tournament 2004.
  6. local commandname="FIX"
  7. local commandaction="Fix"
  8. local function_selfname="$(basename $(readlink -f "${BASH_SOURCE[0]}"))"
  9. echo "applying WebAdmin ut2003.css fix."
  10. echo "http://forums.tripwireinteractive.com/showpost.php?p=585435&postcount=13"
  11. sed -i 's/none}/none;/g' "${filesdir}/Web/ServerAdmin/ut2003.css"
  12. sed -i 's/underline}/underline;/g' "${filesdir}/Web/ServerAdmin/ut2003.css"
  13. sleep 1
  14. echo "applying WebAdmin CharSet fix."
  15. echo "http://forums.tripwireinteractive.com/showpost.php?p=442340&postcount=1"
  16. sed -i 's/CharSet="iso-8859-1"/CharSet="utf-8"/g' "${systemdir}/UWeb.int"
  17. sleep 1
  18. echo "applying server name fix."
  19. sleep 1
  20. echo "forcing server restart..."
  21. sleep 1
  22. command_start.sh
  23. sleep 5
  24. command_stop.sh
  25. command_start.sh
  26. sleep 5
  27. command_stop.sh