diff options
author | Andrey A. Chernov <ache@FreeBSD.org> | 2006-11-07 20:24:57 +0000 |
---|---|---|
committer | Andrey A. Chernov <ache@FreeBSD.org> | 2006-11-07 20:24:57 +0000 |
commit | aef13e3e4bddd92650dba42c320b0ab64d9972f2 (patch) | |
tree | 51c993373104fd20851db94e0f973815cda20178 /mail/dkim-milter | |
parent | dcf156d45f3eb05494a600243bc0b02e386f1ded (diff) | |
download | ports-aef13e3e4bddd92650dba42c320b0ab64d9972f2.tar.gz ports-aef13e3e4bddd92650dba42c320b0ab64d9972f2.zip |
Use "mailnull" user as default
Always chown piddir
Submitted by: Hirohisa Yamaguchi <umq@ueo.co.jp>
Notes
Notes:
svn path=/head/; revision=176744
Diffstat (limited to 'mail/dkim-milter')
-rw-r--r-- | mail/dkim-milter/files/milter-dkim.sh.in | 7 | ||||
-rw-r--r-- | mail/dkim-milter/pkg-install | 18 |
2 files changed, 3 insertions, 22 deletions
diff --git a/mail/dkim-milter/files/milter-dkim.sh.in b/mail/dkim-milter/files/milter-dkim.sh.in index ba2f35254023..f761c28694fb 100644 --- a/mail/dkim-milter/files/milter-dkim.sh.in +++ b/mail/dkim-milter/files/milter-dkim.sh.in @@ -31,7 +31,7 @@ # DO NOT CHANGE THESE DEFAULT VALUES HERE # milterdkim_enable=${milterdkim_enable:-"NO"} -milterdkim_uid=${milterdkim_uid:-"dkimfilter"} +milterdkim_uid=${milterdkim_uid:-"mailnull"} milterdkim_profiles=${milterdkim_profiles:-} milterdkim_socket=${milterdkim_socket:-"local:/var/run/milterdkim/filter"} milterdkim_domain=${milterdkim_domain:-"example.com"} @@ -101,10 +101,9 @@ dkim_prepcmd () elif [ -S ${milterdkim_socket##unix:} ] ; then rm -f ${milterdkim_socket##unix:} fi - if [ -d ${_piddir} ] ; then - return; + if [ ! -d ${_piddir} ] ; then + mkdir -p ${_piddir} fi - mkdir -p ${_piddir} if [ -n "${milterdkim_uid}" ] ; then chown ${milterdkim_uid} ${_piddir} fi diff --git a/mail/dkim-milter/pkg-install b/mail/dkim-milter/pkg-install deleted file mode 100644 index 763eedcadc1c..000000000000 --- a/mail/dkim-milter/pkg-install +++ /dev/null @@ -1,18 +0,0 @@ -#!/bin/sh - -if [ "$2" != "POST-INSTALL" ] -then - exit 0; -fi - -# check if dkimfilter user exists -pw user show dkimfilter > /dev/null 2>&1 - -if [ $? != 0 ] -then - echo "===> Adding user dkimfilter" - pw useradd dkimfilter -c "milter-dkim" -s /sbin/nologin \ - -d /nonexistent -else - echo "===> Using existing user dkimfilter" -fi |