. need_root

from="$1"
to="$2"
[ -n "$from" -a -n "$to" ] || {
	. usage from to
}

for B in /home/ /var/www/ /var/wiki/ /var/svn/ /etc/apache2/sites-available/ /var/www/log/; do
	mv "$B$from" "$B$to"
done

rm /etc/apache2/sites-enabled/"$from"
a2ensite "$to"

rm /home/"$to"/www
lns -F /var/www/"$to" /home/"$to"/www

vi /etc/apache2/sites-enabled/"$to"
vipw ; vipw -s ; vigr ; vigr -s

echo did you forget to update the admins and people groups?
echo should have to fix lots of other things :/
