install_fix_ro.sh 845 B

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