Maintaining WordPress Installations

#!/bin/bash
# wp-update.sh
# update wordpress installation(s) to $1 branch
#
# this script takes the new branch as an argument


DOMAINS="domain1.tld \
domain2.tld \
domain3.tld"

if [ $# -ne 1 ]; then
echo "EPIC FAIL: Missing new version!"
echo "Try: ./wp-upgrade x.x.x (ie; 2.7.1)
exit 1
fi

for site in ${DOMAINS}; do
echo "upgrading ${site}"
echo
cd /var/www/${site}/
svn sw http://core.svn.wordpress.org/tags/$1/ .
done

./wp-update.sh 2.7.3

source

Author: WladyX on 30 June, 2010
Category: Scripts, Wordpress

Leave a Reply

Last articles