aboutsummaryrefslogtreecommitdiff
path: root/databases/mongodb/pkg-deinstall
diff options
context:
space:
mode:
Diffstat (limited to 'databases/mongodb/pkg-deinstall')
-rw-r--r--databases/mongodb/pkg-deinstall15
1 files changed, 15 insertions, 0 deletions
diff --git a/databases/mongodb/pkg-deinstall b/databases/mongodb/pkg-deinstall
new file mode 100644
index 000000000000..1c7a5bf2805d
--- /dev/null
+++ b/databases/mongodb/pkg-deinstall
@@ -0,0 +1,15 @@
+#!/bin/sh
+# $FreeBSD$
+#
+
+if [ "$2" != "POST-DEINSTALL" ]; then
+ exit 0
+fi
+
+USER=mongodb
+
+if pw usershow "${USER}" 2>/dev/null 1>&2; then
+ echo "To delete mongodb user permanently, use 'pw userdel ${USER}'"
+fi
+
+exit 0