fix_wurm.sh 648 B

12345678910111213141516171819202122232425
  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. functionselfname="$(basename "$(readlink -f "${BASH_SOURCE[0]}")")"
  7. # Copies steamclient.so to correct location.
  8. if [ ! -f "${serverfiles}/nativelibs" ]; then
  9. cp -f "${serverfiles}/linux64/steamclient.so" "${serverfiles}/nativelibs"
  10. fi
  11. # First run requires start with no parms.
  12. # After first run new dirs are created.
  13. if [ ! -d "${serverfiles}/Creative" ]; then
  14. parmsbypass=1
  15. fixbypass=1
  16. exitbypass=1
  17. command_start.sh
  18. sleep 10
  19. exitbypass=1
  20. command_stop.sh
  21. unset parmsbypass
  22. fi