[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

[Cluster-devel] [PATCH] Fix ocf-tester to use bash when testing agents



Simple workaround to prevent errors when testing rgmanager resource agents with ocf tester.

Thanks,
Chris
>From 25c98068293d71dd287abeb318604b78565259a3 Mon Sep 17 00:00:00 2001
From: Chris Feist <cfeist redhat com>
Date: Fri, 12 Aug 2011 15:52:45 -0500
Subject: [PATCH] Fix ocf-tester to use bash when testing agents.

---
 tools/ocf-tester.in |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/tools/ocf-tester.in b/tools/ocf-tester.in
index f5121c6..c70b582 100755
--- a/tools/ocf-tester.in
+++ b/tools/ocf-tester.in
@@ -202,7 +202,7 @@ test_permissions() {
     if [ $verbose -ne 0 ]; then
     	echo $msg
     fi
-    su nobody -s /bin/sh $agent $action > /dev/null
+    su nobody -s /bin/bash $agent $action > /dev/null
 }
 
 test_metadata() {
-- 
1.7.6


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]