summaryrefslogtreecommitdiff
path: root/mail/postfix25/pkg-install
diff options
context:
space:
mode:
authorDavid W. Chapman Jr. <dwcjr@FreeBSD.org>2002-06-20 01:32:20 +0000
committerDavid W. Chapman Jr. <dwcjr@FreeBSD.org>2002-06-20 01:32:20 +0000
commit0334a1d64ebf8ddd581ee148f10ece3084987df5 (patch)
tree0f0a61b7854f86aa70937436b6d273ed1ef33e41 /mail/postfix25/pkg-install
parent1. Redirect stderr to /dev/null as well as stdout in rc.d/zope.sh, so that (diff)
Update to 1.1.11
PR: 3954 Submitted by: maintainer
Notes
Notes: svn path=/head/; revision=61604
Diffstat (limited to 'mail/postfix25/pkg-install')
-rw-r--r--mail/postfix25/pkg-install14
1 files changed, 14 insertions, 0 deletions
diff --git a/mail/postfix25/pkg-install b/mail/postfix25/pkg-install
index 5acdbac8d974..1ef1fb5b2089 100644
--- a/mail/postfix25/pkg-install
+++ b/mail/postfix25/pkg-install
@@ -81,6 +81,20 @@ if [ x"$2" = xPRE-INSTALL ]; then
exit 1
fi
fi
+
+ if /usr/sbin/pw show group mail | grep -q "${USER}" 2>/dev/null; then
+ echo "You already have user \"${USER}\" in group \"mail\", so I will use it."
+ else
+ echo "You need user \"${USER}\" added to group \"mail\"."
+ if yesno "Would you like me to add it" y; then
+ /usr/sbin/pw groupmod mail -m ${USER} || exit
+ echo "Done."
+ else
+ echo "Please create it, and try again."
+ exit 1
+ fi
+ fi
+
fi
if [ x"$2" = xPOST-INSTALL ]; then