pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/databases/postgresql80-server/files Remove any -m ... ...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/bd2b462a7161
branches:  trunk
changeset: 496705:bd2b462a7161
user:      cjs <cjs%pkgsrc.org@localhost>
date:      Sat Jul 09 04:24:52 2005 +0000

description:
Remove any -m ... options from common_args when doing an initdb, as this
command doesn't accept that option.

diffstat:

 databases/postgresql80-server/files/pgsql.sh |  6 ++++--
 1 files changed, 4 insertions(+), 2 deletions(-)

diffs (22 lines):

diff -r 34f982d1caa8 -r bd2b462a7161 databases/postgresql80-server/files/pgsql.sh
--- a/databases/postgresql80-server/files/pgsql.sh      Sat Jul 09 03:56:12 2005 +0000
+++ b/databases/postgresql80-server/files/pgsql.sh      Sat Jul 09 04:24:52 2005 +0000
@@ -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 @@
                @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



Home | Main Index | Thread Index | Old Index