fix_ro.sh 1.1 KB

123456789101112131415161718192021222324252627282930313233343536
  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. local commandname="FIX"
  7. local commandaction="Fix"
  8. local function_selfname=$(basename "$(readlink -f "${BASH_SOURCE[0]}")")
  9. echo -e "Applying WebAdmin ROOst.css fix."
  10. echo -e "http://forums.tripwireinteractive.com/showpost.php?p=585435&postcount=13"
  11. sed -i 's/none}/none;/g' "${serverfiles}/Web/ServerAdmin/ROOst.css"
  12. sed -i 's/underline}/underline;/g' "${serverfiles}/Web/ServerAdmin/ROOst.css"
  13. fn_sleep_time
  14. echo -e "Applying WebAdmin CharSet fix."
  15. echo -e "http://forums.tripwireinteractive.com/showpost.php?p=442340&postcount=1"
  16. sed -i 's/CharSet="iso-8859-1"/CharSet="utf-8"/g' "${systemdir}/uweb.int"
  17. fn_sleep_time
  18. echo -e "Applying Steam AppID fix."
  19. sed -i 's/1210/1200/g' "${systemdir}/steam_appid.txt"
  20. fn_sleep_time
  21. echo -e "applying server name fix."
  22. fn_sleep_time
  23. echo -e "forcing server restart..."
  24. fn_sleep_time
  25. exitbypass=1
  26. command_start.sh
  27. sleep 5
  28. exitbypass=1
  29. command_stop.sh
  30. exitbypass=1
  31. command_start.sh
  32. sleep 5
  33. exitbypass=1
  34. command_stop.sh