diff options
author | dwcjr <dwcjr@FreeBSD.org> | 2002-06-20 09:32:20 +0800 |
---|---|---|
committer | dwcjr <dwcjr@FreeBSD.org> | 2002-06-20 09:32:20 +0800 |
commit | 57107bc798eae953bb55919d346efa9db2ffba53 (patch) | |
tree | ed0385fe45a616aead046668a78a4e0937f6396d /mail/postfix28/pkg-install | |
parent | 88b0f2f948f953d64b5e56b8809678907fdfc594 (diff) | |
download | freebsd-ports-gnome-57107bc798eae953bb55919d346efa9db2ffba53.tar.gz freebsd-ports-gnome-57107bc798eae953bb55919d346efa9db2ffba53.tar.zst freebsd-ports-gnome-57107bc798eae953bb55919d346efa9db2ffba53.zip |
Update to 1.1.11
PR: 3954
Submitted by: maintainer
Diffstat (limited to 'mail/postfix28/pkg-install')
-rw-r--r-- | mail/postfix28/pkg-install | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/mail/postfix28/pkg-install b/mail/postfix28/pkg-install index 5acdbac8d974..1ef1fb5b2089 100644 --- a/mail/postfix28/pkg-install +++ b/mail/postfix28/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 |