aboutsummaryrefslogtreecommitdiffstats
path: root/mail/postfix-current/pkg-install
diff options
context:
space:
mode:
authordwcjr <dwcjr@FreeBSD.org>2002-06-20 09:34:01 +0800
committerdwcjr <dwcjr@FreeBSD.org>2002-06-20 09:34:01 +0800
commitd06d3ce6eebe73af64234f65c9a54037c3cdf6cd (patch)
tree7917f62b26f93044b73ef05df18a9996e5fa26ed /mail/postfix-current/pkg-install
parent57107bc798eae953bb55919d346efa9db2ffba53 (diff)
downloadfreebsd-ports-gnome-d06d3ce6eebe73af64234f65c9a54037c3cdf6cd.tar.gz
freebsd-ports-gnome-d06d3ce6eebe73af64234f65c9a54037c3cdf6cd.tar.zst
freebsd-ports-gnome-d06d3ce6eebe73af64234f65c9a54037c3cdf6cd.zip
Update to latest
PR: 39543 Submitted by: maintainer
Diffstat (limited to 'mail/postfix-current/pkg-install')
-rw-r--r--mail/postfix-current/pkg-install14
1 files changed, 14 insertions, 0 deletions
diff --git a/mail/postfix-current/pkg-install b/mail/postfix-current/pkg-install
index 5acdbac8d974..1ef1fb5b2089 100644
--- a/mail/postfix-current/pkg-install
+++ b/mail/postfix-current/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