summaryrefslogtreecommitdiff
path: root/www/apache2/pkg-deinstall
diff options
context:
space:
mode:
Diffstat (limited to 'www/apache2/pkg-deinstall')
-rw-r--r--www/apache2/pkg-deinstall20
1 files changed, 20 insertions, 0 deletions
diff --git a/www/apache2/pkg-deinstall b/www/apache2/pkg-deinstall
new file mode 100644
index 000000000000..61ed1a6c6a38
--- /dev/null
+++ b/www/apache2/pkg-deinstall
@@ -0,0 +1,20 @@
+#!/bin/sh
+# $FreeBSD: /tmp/pcvs/ports/www/apache2/Attic/pkg-deinstall,v 1.3 2001-10-29 20:05:37 ache Exp $
+#
+
+if [ "$2" != "POST-DEINSTALL" ]; then
+ exit 0
+fi
+
+USER=www
+
+if pw usershow "${USER}" 2>/dev/null 1>&2; then
+ if pw userdel ${USER}; then
+ echo "Delete user/group \"${USER}\"."
+ else
+ echo "Deleting user/group \"${USER}\" failed..."
+ exit 1
+ fi
+fi
+
+exit 0