1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-10-28 21:29:28 +00:00
freebsd-ports/databases/postgresql73-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

13 lines
114 B
Bash

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