Created
October 17, 2011 16:59
-
-
Save vidluther/1293079 to your computer and use it in GitHub Desktop.
A simple script to clean up (upgrade) timthumb scripts on your servers
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
cd /tmp | |
wget http://timthumb.googlecode.com/svn/trunk/timthumb.php | |
cd /home | |
sudo find . -name timthumb.php | sudo xargs -i cp /tmp/timthumb.php {} | |
sudo find . -name thumb.php | sudo xargs -i cp /tmp/timthumb.php {} | |
sudo find . -name img.php | sudo xargs -i cp /tmp/timthumb.php {} | |
echo "done replacing Timthumb..pray we didn't mess anyone up" | |
rm /tmp/timthumb.php |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment