Advertisement
Dav_Edward

Starbound Server with SteamWorks Support

Aug 22nd, 2016
2,466
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 0.86 KB | None | 0 0
  1. #!/bin/bash
  2. # Added rmdir line as apparently when you unsubscribe from mods steam workshop leaves behind an empty mod folder
  3. echo "Updating Starbound.."
  4. echo ""
  5. sleep 1
  6. ./steamcmd.sh +login YourSteamAccountHere +force_install_dir ./starbound +app_update 211820 +quit
  7. echo ""
  8. echo "Cleaning out previous mods.."
  9. echo ""
  10. sleep 1
  11. rm ./starbound/mods/*.pak
  12. rmdir --ignore-fail-on-non-empty ./starbound/steamapps/workshop/content/211820/*
  13. echo ""
  14. echo "Loading in current mods from SteamWorkshop.."
  15. echo ""
  16. sleep 1
  17. for dir in ./starbound/steamapps/workshop/content/211820/*/
  18. do
  19.  dir=${dir%*/}
  20.  echo Sym-linking mod ${dir##*/} into the mods folder
  21.  ln -r -s ./starbound/steamapps/workshop/content/211820/${dir##*/}/contents.pak ./starbound/mods/${dir##*/}.pak
  22. done
  23. echo ""
  24. echo "Starting Starbound Server.."
  25. echo ""
  26. sleep 1
  27. cd ./starbound/linux/
  28. ./starbound_server
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement