#!/bin/sh

case $2 in
    PRE-INSTALL)
	;;
    POST-INSTALL)
	mkdir -m 755 /var/dpsearch
	mkdir -m 700 /var/dpsearch/cache
	mkdir -m 755 /var/dpsearch/store
	mkdir -m 755 /var/dpsearch/url
	mkdir -m 755 /var/dpsearch/splitter
	mkdir -m 755 /var/dpsearch/tree
	chown -R www:www /var/dpsearch
	;;
    *)
	echo "Unexpected Argument $2!!!"
	exit 1
	;;
esac
exit 0
