freebsd-ports/databases/postgresql82-server/pkg-deinstall
Clive Lin 429d8d4a88 Fix problems when installing postgresql7 with pkg_add:
- pkg-install used wrong uid#
- chown lib dir *after* it is created
- pkg-install created data dir where Makefile didn't
- add pkg-deinstall and remove user & group
- don't chown data dir, since we don't create it anymore
- spell and documentation fixes in the rc.d script

PR: ports/25817
Submitted by: MAINTAINER
2001-03-15 07:23:08 +00:00

12 lines
114 B
Bash

#!/bin/sh
# remove postgresql users
case $2 in
POST-DEINSTALL)
pw groupdel pgsql
pw userdel pgsql
;;
esac