Heres a little Shell Script I wrote which, if run, will check your entire server for insecure versions of wordpress. If it finds any, it will give you the option to upgrade. If you say yes it will backup the existing sites file and database in /root/wp_upgrade and upgrade it.
Please Note: This has not been tested with any wordpress MU instances, and may break them
wget http://b.ri.mu/files/wordpress-upgrade-patched.sh
sh wordpress-upgrade-patch.sh
This has been tested, and will upgrade to version 2.8.4 . If any future upgrade versions come out after this then just change the variable at the top.
It will determine if its a WordPress or WordPress Multi User and apply the correct fix.
If you have any bugs or problems with it, please let me know or contact support
Note: Patched for better portability by valthonis
6 responses to “WordPress Upgrade Script”
Thanks Liz. If any customers are stuck and needs some advice or a hand, just pop in a ticket with the details and we will see how we can help.
That’s a pretty comprehensive upgrade script. I like to use rsync to show me which files will be updated. Here’s my method:
http://sneakybastard.com/2009/07/updating-wordpress/
Some people have multiple installs (read: me) and I would prefer the less verbosity unless something goes really wrong. Good idea though :)
[…] Article: http://blog.rimuhosting.com/2009/08/20/wordpress-upgrade-script/ Share and […]
Since the increase in attacks on old WordPress versions has recently increased, I wrote a little script to check hosted installations for any suspicious accounts:
http://sneakybastard.com/2009/09/quick-wordpress-intrusion-detection/
May be useful to some. Or not.
Cheers for that, very handy! I wont include it in the script but its very useful :)