summaryrefslogtreecommitdiff
path: root/databases/postgresql-server
diff options
context:
space:
mode:
authorjlam <jlam@pkgsrc.org>2002-10-19 21:02:53 +0000
committerjlam <jlam@pkgsrc.org>2002-10-19 21:02:53 +0000
commitbcc2d00c74ea6bb9d7330828bf11f99d1944f92f (patch)
treeede0d14972d69ef01a035629af017676f9d20445 /databases/postgresql-server
parent13f304d3a7e858d80bdfed59b7e112c2163b3424 (diff)
downloadpkgsrc-bcc2d00c74ea6bb9d7330828bf11f99d1944f92f.tar.gz
Alter quoting so that command_args can be set to something like:
command_args="> /var/log/pgsql.log"
Diffstat (limited to 'databases/postgresql-server')
-rw-r--r--databases/postgresql-server/files/pgsql.sh10
1 files changed, 7 insertions, 3 deletions
diff --git a/databases/postgresql-server/files/pgsql.sh b/databases/postgresql-server/files/pgsql.sh
index ac1e1276b14..78dcab34eaa 100644
--- a/databases/postgresql-server/files/pgsql.sh
+++ b/databases/postgresql-server/files/pgsql.sh
@@ -1,6 +1,6 @@
#!@RCD_SCRIPTS_SHELL@
#
-# $NetBSD: pgsql.sh,v 1.15 2002/10/19 19:01:52 jlam Exp $
+# $NetBSD: pgsql.sh,v 1.16 2002/10/19 21:02:53 jlam 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}
- @SU@ -m ${pgsql_user} -c "${initdb} ${common_args} ${flags}"
+ doit_command="${initdb} ${common_args} ${flags}"
+ doit="@SU@ -m ${pgsql_user} -c '${doit_command}'"
+ eval $doit
fi
}
@@ -110,7 +112,9 @@ pgsql_doit()
restart) @ECHO@ "Restarting ${name}." ;;
esac
- @SU@ -m ${pgsql_user} -c "${ctl_command} ${action} ${command_args}"
+ doit_command="${ctl_command} ${action} ${command_args}"
+ doit="@SU@ -m ${pgsql_user} -c '${doit_command}'"
+ eval $doit
}
if [ -f /etc/rc.subr -a -d /etc/rc.d -a -f /etc/rc.d/DAEMON ]; then