summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--debian/netdata.postrm8
1 files changed, 2 insertions, 6 deletions
diff --git a/debian/netdata.postrm b/debian/netdata.postrm
index c6ddc7e16..7ac581d87 100644
--- a/debian/netdata.postrm
+++ b/debian/netdata.postrm
@@ -14,15 +14,11 @@ case "$1" in
done
if getent passwd netdata >/dev/null; then
- if [ -x /usr/sbin/deluser ]; then
- deluser --quiet --system netdata || echo "Unable to remove netdata user"
- fi
+ deluser --quiet --system netdata || echo "Unable to remove netdata user"
fi
if getent group netdata >/dev/null; then
- if [ -x /usr/sbin/delgroup ]; then
- delgroup --quiet --system netdata || echo "Unable to remove netdata group"
- fi
+ delgroup --quiet --system netdata || echo "Unable to remove netdata group"
fi
;;