#!/bin/sh

case "$2" in
	POST-INSTALL)
		echo "===> Create /var/db/tumgreyspf directories"
		install -d -o nobody -g nobody -m 755 /var/db/tumgreyspf
		install -d -o nobody -g nobody -m 700 /var/db/tumgreyspf/data
		install -d -m 755 /var/db/tumgreyspf/config
		if [ ! -f /var/db/tumgreyspf/config/__default__ ]; then
			install /usr/local/share/tumgreyspf/__default__.dist /var/db/tumgreyspf/config/__default__
		fi
		;;
	*)
		;;
esac


syntax highlighted by Code2HTML, v. 0.9.1