diff options
author | Clive Lin <clive@FreeBSD.org> | 2001-03-15 07:23:08 +0000 |
---|---|---|
committer | Clive Lin <clive@FreeBSD.org> | 2001-03-15 07:23:08 +0000 |
commit | 429d8d4a8862eebc560d47df2314cf48c25f1ac6 (patch) | |
tree | 88df9b4de8e8d165e31ae97b31b1dafdfb2fc242 /databases/postgresql-devel-server/pkg-deinstall | |
parent | fix non-interactive build and pkg-plist (diff) |
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/postgresql-devel-server/pkg-deinstall')
-rw-r--r-- | databases/postgresql-devel-server/pkg-deinstall | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/databases/postgresql-devel-server/pkg-deinstall b/databases/postgresql-devel-server/pkg-deinstall new file mode 100644 index 000000000000..9e1fa3121dc0 --- /dev/null +++ b/databases/postgresql-devel-server/pkg-deinstall @@ -0,0 +1,12 @@ +#!/bin/sh + +# remove postgresql users + +case $2 in + +POST-DEINSTALL) + pw groupdel pgsql + pw userdel pgsql + ;; + +esac |