fix_ut2k4.sh 830 B

123456789101112131415161718192021222324252627
  1. #!/bin/bash
  2. # LGSM fix_ut2k4.sh function
  3. # Author: Daniel Gibbs
  4. # Website: http://gameservermanagers.com
  5. lgsm_version="010316"
  6. # Description: Resolves various issues with unreal tournament 2004.
  7. echo "applying WebAdmin ut2003.css fix."
  8. echo "http://forums.tripwireinteractive.com/showpost.php?p=585435&postcount=13"
  9. sed -i 's/none}/none;/g' "${filesdir}/Web/ServerAdmin/ut2003.css"
  10. sed -i 's/underline}/underline;/g' "${filesdir}/Web/ServerAdmin/ut2003.css"
  11. sleep 1
  12. echo "applying WebAdmin CharSet fix."
  13. echo "http://forums.tripwireinteractive.com/showpost.php?p=442340&postcount=1"
  14. sed -i 's/CharSet="iso-8859-1"/CharSet="utf-8"/g' "${systemdir}/UWeb.int"
  15. sleep 1
  16. echo "applying server name fix."
  17. sleep 1
  18. echo "forcing server restart..."
  19. sleep 1
  20. command_start.sh
  21. sleep 5
  22. command_stop.sh
  23. command_start.sh
  24. sleep 5
  25. command_stop.sh