fix_wurm.sh 629 B

1234567891011121314151617181920212223242526
  1. #!/bin/bash
  2. # LinuxGSM fix_wurm.sh function
  3. # Author: Daniel Gibbs
  4. # Website: https://linuxgsm.com
  5. # Description: Resolves various issues with Wurm Unlimited.
  6. local modulename="FIX"
  7. local commandaction="Fix"
  8. # Copies steamclient.so to correct location.
  9. if [ ! -f "${serverfiles}/nativelibs" ]; then
  10. cp -f "${serverfiles}/linux64/steamclient.so" "${serverfiles}/nativelibs"
  11. fi
  12. # First run requires start with no parms.
  13. # After first run new dirs are created.
  14. if [ ! -d "${serverfiles}/Creative" ]; then
  15. parmsbypass=1
  16. fixbypass=1
  17. exitbypass=1
  18. command_start.sh
  19. sleep 10
  20. exitbypass=1
  21. command_stop.sh
  22. unset parmsbypass
  23. fi