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/postgresql-devel-server/pkg-install | |
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/postgresql-devel-server/pkg-install')
-rw-r--r-- | databases/postgresql-devel-server/pkg-install | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/databases/postgresql-devel-server/pkg-install b/databases/postgresql-devel-server/pkg-install index c55c0ebb161f..edd4f36830d5 100644 --- a/databases/postgresql-devel-server/pkg-install +++ b/databases/postgresql-devel-server/pkg-install @@ -4,15 +4,13 @@ PATH=/bin:/usr/sbin -if [ -z "${DB_DIR}" ]; then - DB_DIR=${PKG_PREFIX}/pgsql/data -fi +DB_DIR=${PKG_PREFIX}/pgsql case $2 in -POST-INSTALL) +PRE-INSTALL) USER=pgsql GROUP=${USER} - UID=89 + UID=70 GID=${UID} if pw group show "${GROUP}" 2>/dev/null; then @@ -39,6 +37,6 @@ POST-INSTALL) fi fi - chown -R ${USER}.${GROUP} ${DB_DIR} ;; + esac |