public inbox for cluster-cvs@sourceware.org
help / color / mirror / Atom feed
* cluster: RHEL53 - rgmanager: Make postgres-8.sh use su instead of sudo
@ 2008-12-03 20:43 Lon Hohberger
  0 siblings, 0 replies; only message in thread
From: Lon Hohberger @ 2008-12-03 20:43 UTC (permalink / raw)
  To: cluster-cvs-relay

Gitweb:        http://git.fedorahosted.org/git/cluster.git?p=cluster.git;a=commitdiff;h=3ce6e23c99a69961917a0ad8da0ff7fcd6883680
Commit:        3ce6e23c99a69961917a0ad8da0ff7fcd6883680
Parent:        e8dc174b6d441c211c99e765a326332ec7bc3e76
Author:        Nicolas MONNET <nicolas.monnet@ingenico.com>
AuthorDate:    Wed Dec 3 15:18:34 2008 -0500
Committer:     Lon Hohberger <lhh@redhat.com>
CommitterDate: Wed Dec 3 15:41:42 2008 -0500

rgmanager: Make postgres-8.sh use su instead of sudo

Resolves part of #462910
---
 rgmanager/src/resources/postgres-8.sh |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/rgmanager/src/resources/postgres-8.sh b/rgmanager/src/resources/postgres-8.sh
index 766646f..bfc3d59 100755
--- a/rgmanager/src/resources/postgres-8.sh
+++ b/rgmanager/src/resources/postgres-8.sh
@@ -160,8 +160,8 @@ start()
 
 	generate_config_file "$OCF_RESKEY_config_file" "$PSQL_gen_config_file" "$ip_addresses"
 
-	sudo -u "$OCF_RESKEY_postmaster_user" $PSQL_POSTMASTER -c config_file="$PSQL_gen_config_file" \
-		$OCF_RESKEY_postmaster_options &> /dev/null &
+	su - "$OCF_RESKEY_postmaster_user" -c "$PSQL_POSTMASTER -c config_file=\"$PSQL_gen_config_file\" \
+		$OCF_RESKEY_postmaster_options" &> /dev/null &
 
 	if [ $? -ne 0 ]; then
 		clog_service_start $CLOG_FAILED


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2008-12-03 20:43 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2008-12-03 20:43 cluster: RHEL53 - rgmanager: Make postgres-8.sh use su instead of sudo Lon Hohberger

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).