Tag Archive for 'wordpress updater'

Ridiculously Simple WordPress Updater

Thank you, BASH, for making me lazy. I wrote a quick script to update WordPress when I tell it to. Weighing in at a hefty 30 lines, the script will download the latest copy of WordPress and overwrite (after seeking your permission) your existing installation when you invoke it. Just fill in the first three variables with your own data and run it.

Sample output:

[joeyjwc@jupiter public_html]$ ./wp-upgrade.sh
--20:07:12--  http://wordpress.org/latest.tar.gz
Resolving wordpress.org...,
Connecting to wordpress.org||:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: unspecified [application/x-gzip]
Saving to: `wordpress-2.3.1.tar.gz'    [ <=> ] 883,535     --.-K/s   in 0.1s
20:07:13 (8.37 MB/s) - `wordpress-2.3.1.tar.gz' saved [883535]
Latest WordPress code downloaded.
Now copying code to: /home/joeyjwc/www/blog
Press q to cancel.
Copied.  If there have been major changes, you might need to run: