fn_update_sdtd_allocfixes 1.1 KB

123456789101112131415161718192021222324252627282930313233
  1. #!/bin/bash
  2. # LGSM fn_sdtd_allocfixes function
  3. # Author: Daniel Gibbs
  4. # Website: http://danielgibbs.co.uk
  5. # Version: 204014
  6. # Description: Stops the server.
  7. if [ "${allocsfixes}" = true ]; then
  8. sleep 5
  9. fn_scriptlog "Installing Alloc's Server Fixes"
  10. echo -en "\n"
  11. sleep 5
  12. echo -en "Installing Alloc's Server Fixes\n"
  13. cd "${rootdir}"/serverfiles/
  14. rm -rf server_fixes.tar.gz
  15. wget http://illy.bz/fi/7dtd/server_fixes.tar.gz
  16. if [ -f "server_fixes.tar.gz" ]; then
  17. tar -xzf server_fixes.tar.gz
  18. rm -rf server_fixes.tar.gz
  19. fn_scriptlog "Server Fixes Installed"
  20. echo -en "Alloc's Server Fixes have been installed.\n"
  21. else
  22. if [ ! -f "server_fixes.tar.gz" ]; then
  23. fn_scriptlog "Error downloading Server Fixes!"
  24. fi
  25. echo -en "There was a problem installing Alloc's Server Fixes!"
  26. fi
  27. fn_scriptlog "Alloc's Server Fixes installed."
  28. echo -en "FAlloc's Server Fixes installed.\n"
  29. fi
  30. }