diff options
author | cjs <cjs@pkgsrc.org> | 2005-07-09 04:24:52 +0000 |
---|---|---|
committer | cjs <cjs@pkgsrc.org> | 2005-07-09 04:24:52 +0000 |
commit | ed013f57abbd6c467f732c4e0869f725e8e1398e (patch) | |
tree | 56891e4e7fa13cd219e7018d5c4d7fe797f49efa /databases | |
parent | 50768258584145c75268710c94beb7d353a012c8 (diff) | |
download | pkgsrc-ed013f57abbd6c467f732c4e0869f725e8e1398e.tar.gz |
Remove any -m ... options from common_args when doing an initdb, as this
command doesn't accept that option.
Diffstat (limited to 'databases')
-rw-r--r-- | databases/postgresql80-server/files/pgsql.sh | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/databases/postgresql80-server/files/pgsql.sh b/databases/postgresql80-server/files/pgsql.sh index 837d8c89a6e..a52422dd14a 100644 --- a/databases/postgresql80-server/files/pgsql.sh +++ b/databases/postgresql80-server/files/pgsql.sh @@ -1,6 +1,6 @@ #!@RCD_SCRIPTS_SHELL@ # -# $NetBSD: pgsql.sh,v 1.2 2005/05/16 01:02:20 cjs Exp $ +# $NetBSD: pgsql.sh,v 1.3 2005/07/09 04:24:52 cjs Exp $ # # PostgreSQL database rc.d control script # @@ -77,7 +77,9 @@ pgsql_initdb() @CHOWN@ ${pgsql_user} ${pgsql_home} @CHGRP@ ${pgsql_group} ${pgsql_home} @CHMOD@ 0750 ${pgsql_home} - eval doit_command=\"${initdb} ${common_args} ${flags}\" + common_args_without_m=$(echo "${common_args}" |\ + sed -e 's/-m [a-z]*//') + eval doit_command=\"${initdb} ${common_args_without_m} ${flags}\" doit="@SU@ -m ${pgsql_user} -c '${doit_command}'" eval $doit fi |