# $NetBSD: INSTALL,v 1.3 2012/08/28 15:54:54 tron Exp $

APACHE_USER=@APACHE_USER@
APACHE_GROUP=@APACHE_GROUP@
PMSETUPDIR=@PMSETUPDIR@
PMSETUPFILE=@PMSETUPFILE@

case ${STAGE} in
POST-INSTALL)
	if [ ! -f ${PMSETUPFILE} ]; then
		${MKDIR} ${PMSETUPDIR}
		${CHOWN} ${APACHE_USER}:${APACHE_GROUP} ${PMSETUPDIR}
		${CHMOD} 755 ${PMSETUPDIR}
		${TOUCH} ${PMSETUPFILE}
		${CHOWN} ${APACHE_USER}:${APACHE_GROUP} ${PMSETUPFILE}
		${CHMOD} 644 ${PMSETUPFILE}
	fi
	;;
esac
