fix_ro.sh 1.1 KB

1234567891011121314151617181920212223242526272829303132333435363738
  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. fn_firstcommand_reset
  26. sleep 5
  27. exitbypass=1
  28. command_stop.sh
  29. fn_firstcommand_reset
  30. exitbypass=1
  31. command_start.sh
  32. fn_firstcommand_reset
  33. sleep 5
  34. exitbypass=1
  35. command_stop.sh
  36. fn_firstcommand_reset