aboutsummaryrefslogtreecommitdiffstats
path: root/databases/postgresql7/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'databases/postgresql7/Makefile')
-rw-r--r--databases/postgresql7/Makefile1
1 files changed, 1 insertions, 0 deletions
diff --git a/databases/postgresql7/Makefile b/databases/postgresql7/Makefile
index 55102745e4c3..08452acf5910 100644
--- a/databases/postgresql7/Makefile
+++ b/databases/postgresql7/Makefile
@@ -193,6 +193,7 @@ post-install:
>> ${PREFIX}/pgsql/.profile; \
fi
@ ${CHOWN} -R pgsql:pgsql ${PREFIX}/pgsql
+ @ ${CHOWN} root:pgsql ${PREFIX}/pgsql/lib
@ ${ECHO} 'Initializing PostgreSQL Databases - this may take a few minutes...'
@ ${SETENV} OBJFORMAT=${PORTOBJFORMAT} ${LDCONFIG} -m ${PREFIX}/pgsql/lib
@ su -l pgsql -c 'PATH=${PREFIX}/pgsql/bin:${PATH} LD_LIBRARY_PATH=${PREFIX}/pgsql/lib ${PREFIX}/pgsql/bin/initdb --pglib=${PREFIX}/pgsql/lib --pgdata=${PREFIX}/pgsql/data'