WordPress Upgrade Script

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

This entry was posted in Rimuhosting, Security and tagged , , . Bookmark the permalink.

6 Responses to WordPress Upgrade Script

  1. peter says:

    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.

  2. jlamoree says:

    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/

  3. Liz Quilty says:

    Some people have multiple installs (read: me) and I would prefer the less verbosity unless something goes really wrong. Good idea though :)

  4. Pingback: Wordpress upgrade script | New Zealand Linux

  5. jlamoree says:

    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.

  6. Liz Quilty says:

    Cheers for that, very handy! I wont include it in the script but its very useful :)