#!/bin/sh
# $FreeBSD: devel/otrs/files/pkg-install.in 300896 2012-07-14 13:54:48Z beat $

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
