aboutsummaryrefslogtreecommitdiff
path: root/security/clamav/pkg-deinstall
diff options
context:
space:
mode:
authorGreg Lewis <glewis@FreeBSD.org>2004-02-03 06:43:06 +0000
committerGreg Lewis <glewis@FreeBSD.org>2004-02-03 06:43:06 +0000
commit095206badd592da68a57c2843412f35de97b76cb (patch)
treeca1eb35a36dfe868a9fe3d8727f4f0f3c2f3c882 /security/clamav/pkg-deinstall
parentb62a486d8fe62e7cf3ea91a152581b6e1a8b44b4 (diff)
downloadports-095206badd592da68a57c2843412f35de97b76cb.tar.gz
ports-095206badd592da68a57c2843412f35de97b76cb.zip
. Add a pkg-deinstall script telling people how they can get rid of the
clamav user permanently if they wish to.
Notes
Notes: svn path=/head/; revision=99865
Diffstat (limited to 'security/clamav/pkg-deinstall')
-rw-r--r--security/clamav/pkg-deinstall13
1 files changed, 13 insertions, 0 deletions
diff --git a/security/clamav/pkg-deinstall b/security/clamav/pkg-deinstall
new file mode 100644
index 000000000000..fa1db68a6929
--- /dev/null
+++ b/security/clamav/pkg-deinstall
@@ -0,0 +1,13 @@
+#!/bin/sh
+# $FreeBSD$
+
+if [ "$2" != "POST-DEINSTALL" ]; then
+ exit 0
+fi
+
+USER=clamav
+
+if pw usershow "${USER}" 2>/dev/null 1>&2; then
+ echo "To delete ${USER} user permanently, use 'pw userdel \"${USER}\"'"
+fi
+exit 0