Skip to content

Instantly share code, notes, and snippets.

@vidluther
Created October 17, 2011 16:59
Show Gist options
  • Save vidluther/1293079 to your computer and use it in GitHub Desktop.
Save vidluther/1293079 to your computer and use it in GitHub Desktop.
A simple script to clean up (upgrade) timthumb scripts on your servers
#!/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