fix_ios.sh 541 B

12345678910111213141516
  1. #!/bin/bash
  2. # LinuxGSM fix_ios.sh module
  3. # Author: Daniel Gibbs
  4. # Contributors: https://linuxgsm.com/contrib
  5. # Website: https://linuxgsm.com
  6. # Description: Resolves issues with IOSoccer.
  7. moduleselfname="$(basename "$(readlink -f "${BASH_SOURCE[0]}")")"
  8. # Fixes: IOSoccer 64-bit server stuck reloading the map #5023.
  9. if [ -f "${servercfgfullpath}" ] && grep -qE '^\s*map\s' "${servercfgfullpath}"; then
  10. fixname="remove map from ${servercfg}"
  11. fn_fix_msg_start
  12. sed -i -E 's|^(\s*map\s.*)$|// \1|' "${servercfgfullpath}"
  13. fn_fix_msg_end
  14. fi