[postfwd] 05/96: add conditional deluser and delgroup
Jan Wagner
waja at alioth.debian.org
Tue Nov 5 20:09:28 UTC 2013
This is an automated email from the git hooks/post-receive script.
waja pushed a commit to branch master
in repository postfwd.
commit e1a89b693e5a9f545d71419f1e3a7ea7730a3eb0
Author: Jan Wagner <waja at cyconet.org>
Date: Mon Apr 14 13:56:11 2008 +0000
add conditional deluser and delgroup
---
debian/postrm | 10 +++++-----
1 file changed, 5 insertions(+), 5 deletions(-)
diff --git a/debian/postrm b/debian/postrm
index 5b95704..eb50815 100644
--- a/debian/postrm
+++ b/debian/postrm
@@ -30,11 +30,11 @@ case "$1" in
[ "$USERID" -le "$LAST_SYSTEM_UID" ] && \
[ -x /usr/sbin/deluser ]; then
deluser --quiet $NUSER || true
- # And then remove the group
- GROUPID=`getent group $NGROUP | cut -f 3 -d ':'`
- if [ -n "$GROUPID" ] && [ -x /usr/sbin/delgroup ] ; then
- delgroup --quiet $NGROUP || true
- fi
+ # And then remove the group
+ GROUPID=`getent group $NGROUP | cut -f 3 -d ':'`
+ if [ -n "$GROUPID" ] && [ -x /usr/sbin/delgroup ] ; then
+ delgroup --quiet $NGROUP || true
+ fi
fi
fi
fi
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-perl/packages/postfwd.git
More information about the Pkg-perl-cvs-commits
mailing list