This is the mail archive of the
cluster-cvs@sourceware.org
mailing list for the cluster.
cluster: STABLE2 - rgmanager: Make postgres-8.sh use su instead ofsudo
- From: Lon Hohberger <lon at fedoraproject dot org>
- To: cluster-cvs-relay at redhat dot com
- Date: Wed, 3 Dec 2008 20:42:48 +0000 (UTC)
- Subject: cluster: STABLE2 - rgmanager: Make postgres-8.sh use su instead ofsudo
Gitweb: http://git.fedorahosted.org/git/cluster.git?p=cluster.git;a=commitdiff;h=9f693e663079111e76b036728296b4832d9f4e63
Commit: 9f693e663079111e76b036728296b4832d9f4e63
Parent: 885ca0503b4e6740b57219c8eb62dd2aef8fb6c8
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:42:40 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 31302a7..40e79fa 100644
--- a/rgmanager/src/resources/postgres-8.sh
+++ b/rgmanager/src/resources/postgres-8.sh
@@ -137,8 +137,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