diff options
Diffstat (limited to 'databases/postgresql95-server/files/postgresql.in')
-rw-r--r-- | databases/postgresql95-server/files/postgresql.in | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/databases/postgresql95-server/files/postgresql.in b/databases/postgresql95-server/files/postgresql.in index 643171a44b91..016b5567ca33 100644 --- a/databases/postgresql95-server/files/postgresql.in +++ b/databases/postgresql95-server/files/postgresql.in @@ -58,8 +58,8 @@ if [ -n "$2" ]; then echo "You must define a data directory (postgresql_${profile}_data)" exit 1 fi - eval postgresql_enable="\${postgresql_${profile}_enable:-${postgresql_enable}} - eval postgresql_data="\${postgresql_${profile}_data:-${postgresql_data}} + eval postgresql_enable="\${postgresql_${profile}_enable:-${postgresql_enable}}" + eval postgresql_data="\${postgresql_${profile}_data:-${postgresql_data}}" eval postgresql_flags="\${postgresql_${profile}_flags:-${postgresql_flags}}" eval postgresql_initdb_flags="\${postgresql_${profile}_initdb_flags:-${postgresql_initdb_flags}}" fi @@ -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" |