Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/bin/bash
- # Version 0.0.1
- #
- # Copyright (C) 2011 Dennis Rawet
- #
- # This program is free software: you can redistribute it and/or modify
- # it under the terms of the GNU General Public License as published by
- # the Free Software Foundation, either version 3 of the License, or
- # any later version.
- #
- # This program is distributed in the hope that it will be useful,
- # but WITHOUT ANY WARRANTY; without even the implied warranty of
- # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- # GNU General Public License for more details.
- # Howto!
- # To edit crontab run "crontab -e" and choose 2 (nano) then add:
- # 0 * * * * bash PATH-TO/update.sh
- # Make sure you can execute your file!
- # Now i hope it runs every hour! PM Myx0x3 @ forum.bukkit.org if it dont work, and ill try to help you!
- # Change where your updated plugin folder is
- updated_plugins="/home/user/bukkit_update/plugins"
- # Change where your plugin folder is
- plugins="/home/user/plugins"
- # The master code!
- find $updated_plugins -type f -exec mv {} $plugins \;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement