fn_sdtdfix_alloc 1.3 KB

123456789101112131415161718192021222324252627282930313233343536
  1. #!/bin/bash
  2. # LGSM fn_sdtdfix_alloc function
  3. # Author: Daniel Gibbs
  4. # Contributor: Chris Koepf
  5. # Website: http://gameservermanagers.com
  6. # Version: 210115
  7. # Description: Creates a .tar.gz file in the backup directory.
  8. # addition for 7 Days to Die - very popular server addon run on most dedicated servers
  9. # file validation breaks this addon and it requires re-installation each time.
  10. if [ "${allocsfixes}" = true ]; then
  11. sleep 5
  12. fn_scriptlog "Installing Alloc's Server Fixes"
  13. echo -en "\n"
  14. sleep 5
  15. echo -en "Installing Alloc's Server Fixes\n"
  16. cd "${rootdir}"/serverfiles/
  17. rm -rf server_fixes.tar.gz
  18. wget http://illy.bz/fi/7dtd/server_fixes.tar.gz
  19. if [ -f "server_fixes.tar.gz" ]; then
  20. tar -xzf server_fixes.tar.gz
  21. rm -rf server_fixes.tar.gz
  22. fn_scriptlog "Server Fixes Installed"
  23. echo -en "Alloc's Server Fixes have been installed.\n"
  24. else
  25. if [ ! -f "server_fixes.tar.gz" ]; then
  26. fn_scriptlog "Error downloading Server Fixes!"
  27. fi
  28. echo -en "There was a problem installing Alloc's Server Fixes!"
  29. fi
  30. fn_scriptlog "Alloc's Server Fixes installed."
  31. echo -en "FAlloc's Server Fixes installed.\n"
  32. fi
  33. }