Guest User

Dennis Rawet

a guest
Mar 11th, 2011
2,258
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. #!/bin/bash
  2. #   Version 0.0.1
  3. #
  4. #   Copyright (C) 2011  Dennis Rawet
  5. #
  6. #   This program is free software: you can redistribute it and/or modify
  7. #   it under the terms of the GNU General Public License as published by
  8. #   the Free Software Foundation, either version 3 of the License, or
  9. #   any later version.
  10. #
  11. #   This program is distributed in the hope that it will be useful,
  12. #   but WITHOUT ANY WARRANTY; without even the implied warranty of
  13. #   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  14. #   GNU General Public License for more details.
  15.  
  16.  
  17. #   Howto!
  18. # To edit crontab run "crontab -e" and choose 2 (nano) then add:
  19. # 0 * * * * bash PATH-TO/update.sh
  20.  
  21. # Make sure you can execute your file!
  22. # Now i hope it runs every hour! PM Myx0x3 @ forum.bukkit.org if it dont work, and ill try to help you!
  23.  
  24.  
  25. # Change where your updated plugin folder is
  26. updated_plugins="/home/user/bukkit_update/plugins"
  27.  
  28. # Change where your plugin folder is
  29.  
  30. plugins="/home/user/plugins"
  31.  
  32.  
  33.  
  34.  
  35. # The master code!
  36. find $updated_plugins -type f -exec mv {} $plugins \;
RAW Paste Data