I’m pretty sure all the other WordPress bloggers out there noticed the shiny bar in their WordPress admin panels, announcing the release of Wordpress 2.3.2, about 18 days ago.

If there is one thing I hate at the moment, it’s having to upgrade my blog while I’ve done custom modifications and copy all those files by hand. To save all you other folks some hastle, I’ve looked at the actual changes and the adjusted files. Based on my findings I’ve created a simple bash script that updates your blog (and makes a backup before doing so ;))

Beware: the following commands are from WordPress 2.3.1 to WordPress 2.3.2. Use at your own risk.

Shell instructions

  1. Login to your box with ssh
  2. wget http://www.labcoding.com/scripts/wp-update && chmod u+x wp-update
  3. ./wp-update -d /full/path/to/your/wp-blog/root

You should get the following output:

NOTE: To be on the safe side I’ve added checks to see if the SOURCE version is 2.3.2 and the DESTINATION is 2.3.1. Also, a backup is created in your home directory, just in case.

Also, i run this command through sudo because of certain rights on my filesystem. Be sure to check the file permissions and ownership after your done.

Enjoy!

Share and Enjoy:
  • Digg
  • del.icio.us
  • Furl
  • Slashdot
  • Spurl
  • StumbleUpon
  • Technorati