summaryrefslogtreecommitdiffstats
path: root/debian/netdata.postrm
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2019-01-01 17:25:03 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2019-01-02 18:08:06 +0000
commit1a0071b3f72e769e70b02acfb45654aad0df5219 (patch)
treeaed1b282d9e3e2dfe54b353a375fbaf3ec3f8151 /debian/netdata.postrm
parentBuilding with dh_missing --fail-missing. (diff)
downloadnetdata-1a0071b3f72e769e70b02acfb45654aad0df5219.tar.xz
netdata-1a0071b3f72e769e70b02acfb45654aad0df5219.zip
Using passwd instead of adduser to lower depends footprint.
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to '')
-rw-r--r--debian/netdata.postrm4
1 files changed, 2 insertions, 2 deletions
diff --git a/debian/netdata.postrm b/debian/netdata.postrm
index 81a657881..2a57c3cba 100644
--- a/debian/netdata.postrm
+++ b/debian/netdata.postrm
@@ -16,11 +16,11 @@ case "$1" in
rm -rf /var/cache/netdata /var/log/netdata
if getent passwd netdata >/dev/null; then
- deluser --quiet --system netdata || echo "Unable to remove netdata user"
+ userdel netdata || echo "Unable to remove netdata user"
fi
if getent group netdata >/dev/null; then
- delgroup --quiet --system netdata || echo "Unable to remove netdata group"
+ groupdel netdata || echo "Unable to remove netdata group"
fi
;;