From 0be6599b6f01889feb0f445c94d9230ac20d5437 Mon Sep 17 00:00:00 2001 From: dinoex Date: Tue, 9 Oct 2001 19:20:15 +0000 Subject: Remove user only if uid matches, so a user in the bas system won't be deleted. Remove double deletion of docdir. --- mail/sendmail/pkg-plist | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'mail/sendmail') diff --git a/mail/sendmail/pkg-plist b/mail/sendmail/pkg-plist index bb126e8720f5..17e7c032bf63 100644 --- a/mail/sendmail/pkg-plist +++ b/mail/sendmail/pkg-plist @@ -1,10 +1,10 @@ -@comment $FreeBSD: /tmp/pcvs/ports/mail/sendmail/pkg-plist,v 1.6 2001-10-07 06:51:44 dinoex Exp $ +@comment $FreeBSD: /tmp/pcvs/ports/mail/sendmail/pkg-plist,v 1.7 2001-10-09 19:20:15 dinoex Exp $ @exec if ! pw groupshow smmsp 2>/dev/null; then pw groupadd smmsp -g 90; fi @exec if ! pw usershow smmsp 2>/dev/null; then pw useradd smmsp -g smmsp -u 90 -h - -d /nonexistent -s /nonexistent -c "Sendmail Queue"; fi @exec mkdir -p /var/spool/clientmqueue @exec chown smmsp:smmsp /var/spool/clientmqueue @exec chmod 770 /var/spool/clientmqueue -@unexec pw userdel smmsp +@unexec if pw usershow smmsp | grep -q 90:90; then pw userdel smmsp; fi @comment (removed by userdel) pw groupdel smmsp bin/hoststat bin/mailq @@ -26,4 +26,3 @@ sbin/sendmail %%PORTDOCS%%share/doc/sendmail/SENDMAIL %%PORTDOCS%%share/doc/sendmail/MAIL.LOCAL %%PORTDOCS%%share/doc/sendmail/SMRSH -%%PORTDOCS%%@dirrm share/doc/sendmail -- cgit