aboutsummaryrefslogtreecommitdiff
path: root/databases/postgresql82-server/pkg-deinstall
diff options
context:
space:
mode:
Diffstat (limited to 'databases/postgresql82-server/pkg-deinstall')
-rw-r--r--databases/postgresql82-server/pkg-deinstall12
1 files changed, 12 insertions, 0 deletions
diff --git a/databases/postgresql82-server/pkg-deinstall b/databases/postgresql82-server/pkg-deinstall
new file mode 100644
index 000000000000..9e1fa3121dc0
--- /dev/null
+++ b/databases/postgresql82-server/pkg-deinstall
@@ -0,0 +1,12 @@
+#!/bin/sh
+
+# remove postgresql users
+
+case $2 in
+
+POST-DEINSTALL)
+ pw groupdel pgsql
+ pw userdel pgsql
+ ;;
+
+esac