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