1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-16 03:24:07 +00:00
freebsd-ports/mail/dk-milter/pkg-install
Pav Lucistnik b4b077fb16 - a patch to fix `delayed queue ID' problem
- new switch WITH_POSTFIX_MILTER
- assign a new user `dkfilter' to run the milter as a non-priviledged process

PR:		ports/103490
Submitted by:	Hirohisa Yamaguchi <umq@ueo.co.jp> (maintainer)
2006-09-25 17:44:40 +00:00

19 lines
310 B
Bash

#!/bin/sh
if [ "$2" != "POST-INSTALL" ]
then
exit 0;
fi
# check if dkfilter user exists
pw user show dkfilter > /dev/null 2>&1
if [ $? != 0 ]
then
echo "===> Adding user dkfilter"
pw useradd dkfilter -c "milter-dk" -s /sbin/nologin \
-d /nonexistent
else
echo "===> Using existing user dkfilter"
fi