fn_install_kffix 851 B

123456789101112131415161718192021222324252627
  1. #!/bin/bash
  2. # LGSM fn_install_kffix function
  3. # Author: Daniel Gibbs
  4. # Website: http://gameservermanagers.com
  5. # Version: 210115
  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. cd "${rootdir}"
  22. ./${selfname} start
  23. sleep 5
  24. ./${selfname} restart
  25. sleep 5
  26. ./${selfname} stop