fix_ro.sh 1.0 KB

12345678910111213141516171819202122232425262728293031323334
  1. #!/bin/bash
  2. # LinuxGSM fix_ro.sh function
  3. # Author: Daniel Gibbs
  4. # Website: https://linuxgsm.com
  5. # Description: Resolves various issues with Red Orchestra.
  6. functionselfname="$(basename "$(readlink -f "${BASH_SOURCE[0]}")")"
  7. echo -e "Applying WebAdmin ROOst.css fix."
  8. echo -e "http://forums.tripwireinteractive.com/showpost.php?p=585435&postcount=13"
  9. sed -i 's/none}/none;/g' "${serverfiles}/Web/ServerAdmin/ROOst.css"
  10. sed -i 's/underline}/underline;/g' "${serverfiles}/Web/ServerAdmin/ROOst.css"
  11. fn_sleep_time
  12. echo -e "Applying WebAdmin CharSet fix."
  13. echo -e "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. fn_sleep_time
  16. echo -e "Applying Steam AppID fix."
  17. sed -i 's/1210/1200/g' "${systemdir}/steam_appid.txt"
  18. fn_sleep_time
  19. echo -e "applying server name fix."
  20. fn_sleep_time
  21. echo -e "forcing server restart..."
  22. fn_sleep_time
  23. exitbypass=1
  24. command_start.sh
  25. sleep 5
  26. exitbypass=1
  27. command_stop.sh
  28. exitbypass=1
  29. command_start.sh
  30. sleep 5
  31. exitbypass=1
  32. command_stop.sh