aboutsummaryrefslogtreecommitdiffstats
path: root/www/apache21/pkg-deinstall
diff options
context:
space:
mode:
authorache <ache@FreeBSD.org>2001-10-25 00:03:38 +0800
committerache <ache@FreeBSD.org>2001-10-25 00:03:38 +0800
commit71586889ceee37fb38ff39a2f2ccfd690d2b40c1 (patch)
tree2e52086082895333c85b5d60f409daffa4977189 /www/apache21/pkg-deinstall
parent31feaaedaa1863ba185c5fe67ec105f98852fd68 (diff)
downloadfreebsd-ports-gnome-71586889ceee37fb38ff39a2f2ccfd690d2b40c1.tar.gz
freebsd-ports-gnome-71586889ceee37fb38ff39a2f2ccfd690d2b40c1.tar.zst
freebsd-ports-gnome-71586889ceee37fb38ff39a2f2ccfd690d2b40c1.zip
Sync with main Apache
Submitted by: MAINTAINER
Diffstat (limited to 'www/apache21/pkg-deinstall')
-rw-r--r--www/apache21/pkg-deinstall20
1 files changed, 20 insertions, 0 deletions
diff --git a/www/apache21/pkg-deinstall b/www/apache21/pkg-deinstall
new file mode 100644
index 000000000000..77df2833abd0
--- /dev/null
+++ b/www/apache21/pkg-deinstall
@@ -0,0 +1,20 @@
+#!/bin/sh
+# $FreeBSD: /tmp/pcvs/ports/www/apache21/Attic/pkg-deinstall,v 1.1 2001-10-24 16:03:34 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