#!/bin/sh
case $2 in
	PRE-INSTALL)
		;;
	POST-INSTALL)
		/usr/sbin/chown -R www /usr/local/www/wordpress/wp-content
		/usr/bin/find /usr/local/www/wordpress -type d -print | xargs /usr/bin/chgrp www
		/usr/bin/find /usr/local/www/wordpress -type d -print | xargs /bin/chmod g+w
		;;
	*)
	;;
esac
