#!/bin/sh
# $FreeBSD: ports/devel/otrs/files/pkg-install.in,v 1.5 2011/07/10 17:40:59 crees Exp $

PATH=/bin:/usr/bin:/usr/sbin

WWWOWN="www"
WWWGRP="www"
OTRS_USER="otrs"
OTRS_GROUP="otrs"

case $2 in
POST-INSTALL)
	${PKG_PREFIX}/otrs/bin/otrs.SetPermissions.pl \
		--web-user=${WWWOWN} --web-group=${WWWGRP} \
		--otrs-user=${OTRS_USER} --otrs-group=${OTRS_GROUP} \
		--admin-user=root --admin-group=wheel \
		${PKG_PREFIX}/otrs
;;

esac
