Skip to content
Permalink
Browse files

Bug: https://trac.macports.org/ticket/3077

Reported by:	decibel@decibel.org
Submitted by:   mww@

fix issue with default db-dir being not empty

git-svn-id: https://svn.macports.org/repository/macports/trunk/dports@14431 d073be05-634f-4543-b044-5fe20cf6d1d6
  • Loading branch information
Markus W. Weißmann
Markus W. Weißmann committed Oct 5, 2005
1 parent b8a18d0 commit 975745d2202793b53ef6861b574d6c6e09741b95
Showing with 3 additions and 5 deletions.
  1. +3 −5 databases/postgresql8/Portfile
@@ -1,4 +1,4 @@
# $Id: Portfile,v 1.24 2005/10/05 06:49:46 mww Exp $
# $Id: Portfile,v 1.25 2005/10/05 13:33:11 mww Exp $

PortSystem 1.0

@@ -101,13 +101,11 @@ variant server {
home=${prefix}/var/db/pgsql8 \
realname=PostgreSQL-8\ Server
}
post-destroot {
xinstall -m 755 -o postgres8 -g postgres -d ${destroot}${dbdir}
}
destroot.keepdirs ${destroot}${prefix}/var/db/pgsql8/defaultdb

post-install {
ui_msg "\nTo create a database instance, after install do\n\
sudo mkdir -p ${dbdir}\n\
sudo chown postgres8:postgre ${dbdir}\n\
sudo su postgres8 -c \'${libdir}/bin/initdb -D ${dbdir}\'"
ui_msg "\nTo activate the PostgreSQL8 server, add\n\
POSTGRESQL8=-YES-\n\

0 comments on commit 975745d

Please sign in to comment.
You can’t perform that action at this time.