mirror of
https://git.FreeBSD.org/ports.git
synced 2024-12-16 03:24:07 +00:00
b4b077fb16
- 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)
19 lines
310 B
Bash
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
|