diff options
author | David W. Chapman Jr. <dwcjr@FreeBSD.org> | 2002-06-20 01:32:20 +0000 |
---|---|---|
committer | David W. Chapman Jr. <dwcjr@FreeBSD.org> | 2002-06-20 01:32:20 +0000 |
commit | 0334a1d64ebf8ddd581ee148f10ece3084987df5 (patch) | |
tree | 0f0a61b7854f86aa70937436b6d273ed1ef33e41 /mail/postfix26/pkg-install | |
parent | 937d3600425e26cd76a52d55dc12ac6ca5197dc0 (diff) | |
download | ports-0334a1d64ebf8ddd581ee148f10ece3084987df5.tar.gz ports-0334a1d64ebf8ddd581ee148f10ece3084987df5.zip |
Notes
Diffstat (limited to 'mail/postfix26/pkg-install')
-rw-r--r-- | mail/postfix26/pkg-install | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/mail/postfix26/pkg-install b/mail/postfix26/pkg-install index 5acdbac8d974..1ef1fb5b2089 100644 --- a/mail/postfix26/pkg-install +++ b/mail/postfix26/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 |