1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-01-06 06:30:19 +00:00

We should tell initdb which user we want as DBA

This commit is contained in:
Palle Girgensohn 2016-09-21 09:02:59 +00:00
parent 47c69d6f76
commit fbf49155b1
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=422551
2 changed files with 2 additions and 2 deletions

View File

@ -2,7 +2,7 @@
# $FreeBSD$
DISTVERSION?= 9.6rc1
PORTREVISION?= 2
PORTREVISION?= 3
MAINTAINER?= pgsql@FreeBSD.org

View File

@ -108,7 +108,7 @@ postgresql_command()
postgresql_initdb()
{
su -l -c ${postgresql_class} ${postgresql_user} -c "exec %%PREFIX%%/bin/initdb ${postgresql_initdb_flags} -D ${postgresql_data}"
su -l -c ${postgresql_class} ${postgresql_user} -c "exec %%PREFIX%%/bin/initdb ${postgresql_initdb_flags} -D ${postgresql_data} -U ${postgresql_user}"
}
run_rc_command "$1"