I download and uncompress latest.zip into /usr/local/www/data/wordpress/, then I run this shell script from the directory above all my web sites (/usr/local/www/data/):
Code:
#!/bin/bash
cd /usr/local/www/data
if [ -d wordpress/wp-content ]
then
rm -rf wordpress/wp-content
fi
if [ -f wordpress/wp-config.php ]
then
rm -f wordpress/wp-config.php
fi
# use find command to get all first-level subdirectories containing Wordpress
BLOGS=$(ls */wp-config.php | grep -v $(ls -d */wordpress-mu | cut -f1 -d'/') | cut -f1 -d'/')
for b in $BLOGS
do
cp -R wordpress/* $b/
done
After a good deal of disk drive activity I have 1,496 upgraded Wordpress installations.
Bookmarks