diff options
author | clive <clive@FreeBSD.org> | 2001-03-15 15:23:08 +0800 |
---|---|---|
committer | clive <clive@FreeBSD.org> | 2001-03-15 15:23:08 +0800 |
commit | 82c3872f88fd71cc3c85638923ceed2f3bbaf26e (patch) | |
tree | 0d4700ad51afdb02977ddc45148a410eee818772 /databases/postgresql90-server/pkg-deinstall | |
parent | 29fc0ef7b21c6d632e4b1b3646096852a1036a97 (diff) | |
download | freebsd-ports-gnome-82c3872f88fd71cc3c85638923ceed2f3bbaf26e.tar.gz freebsd-ports-gnome-82c3872f88fd71cc3c85638923ceed2f3bbaf26e.tar.zst freebsd-ports-gnome-82c3872f88fd71cc3c85638923ceed2f3bbaf26e.zip |
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
Diffstat (limited to 'databases/postgresql90-server/pkg-deinstall')
-rw-r--r-- | databases/postgresql90-server/pkg-deinstall | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/databases/postgresql90-server/pkg-deinstall b/databases/postgresql90-server/pkg-deinstall new file mode 100644 index 000000000000..9e1fa3121dc0 --- /dev/null +++ b/databases/postgresql90-server/pkg-deinstall @@ -0,0 +1,12 @@ +#!/bin/sh + +# remove postgresql users + +case $2 in + +POST-DEINSTALL) + pw groupdel pgsql + pw userdel pgsql + ;; + +esac |