#!/bin/sh
case $2 in
	PRE-INSTALL)
		;;
	POST-INSTALL)

		if [ -n "$3" ]; then
			mkdir -p -m 755 /var/db/mysql/WEBLOG_DATABASEDIR
			chown -R www:www /var/db/mysql/WEBLOG_DATABASEDIR
		fi
			chown -R www:www\
				/usr/local/www/cgi-bin/mt\
				/usr/local/www/data
		;;
	*)
	;;
esac
mkdir -p -m 755 /usr/local/www/cgi-bin/mt/import\
		/usr/local/www/cgi-bin/mt/alt-tmpl\
		/usr/local/www/cgi-bin/mt/extlib/MT/L10N\
		/usr/local/www/cgi-bin/mt/php/extlib/smarty/demo/templates_c\
		/usr/local/www/cgi-bin/mt/php/plugins\
		/usr/local/www/data/mt-static/support
exit
