From e1a89b693e5a9f545d71419f1e3a7ea7730a3eb0 Mon Sep 17 00:00:00 2001 From: Jan Wagner Date: Mon, 14 Apr 2008 13:56:11 +0000 Subject: [PATCH] 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