diff options
Diffstat (limited to 'dev-db/postgresql/postgresql-10.17.ebuild')
| -rw-r--r-- | dev-db/postgresql/postgresql-10.17.ebuild | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/dev-db/postgresql/postgresql-10.17.ebuild b/dev-db/postgresql/postgresql-10.17.ebuild index 866e2d6f6987..7723abe23530 100644 --- a/dev-db/postgresql/postgresql-10.17.ebuild +++ b/dev-db/postgresql/postgresql-10.17.ebuild @@ -391,7 +391,7 @@ pkg_config() { einfo "Initializing the database ..." if [[ ${EUID} == 0 ]] ; then - su postgres -c "${EROOT}/usr/$(get_libdir)/postgresql-${SLOT}/bin/initdb -D \"${DATA_DIR}\" ${PG_INITDB_OPTS}" + su - postgres -c "${EROOT}/usr/$(get_libdir)/postgresql-${SLOT}/bin/initdb -D \"${DATA_DIR}\" ${PG_INITDB_OPTS}" else "${EROOT}"/usr/$(get_libdir)/postgresql-${SLOT}/bin/initdb -U postgres -D "${DATA_DIR}" ${PG_INITDB_OPTS} fi |
