fix_ut2k4.sh 855 B

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