Gitweb: http://git.fedorahosted.org/git/resource-agents.git?p=resource-agents.git;a=... Commit: 50e09921a1c90b4de38bfdc68d8308983326afd8 Parent: 0078bf0667c11d8359452823b3fb9c2a008aaac6 Author: Fabio M. Di Nitto fdinitto@redhat.com AuthorDate: Mon Jul 5 13:04:21 2010 +0200 Committer: Fabio M. Di Nitto fdinitto@redhat.com CommitterDate: Mon Jul 5 13:06:44 2010 +0200
resource agents: Remove bashisms from resource scripts
Patch from Guido Gunter agx@sigxcpu.org
Closes Debian Bug: #581137
Signed-off-by: Fabio M. Di Nitto fdinitto@redhat.com --- rgmanager/src/resources/SAPDatabase | 2 +- rgmanager/src/resources/SAPInstance | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/rgmanager/src/resources/SAPDatabase b/rgmanager/src/resources/SAPDatabase index d6972fd..9e8053a 100644 --- a/rgmanager/src/resources/SAPDatabase +++ b/rgmanager/src/resources/SAPDatabase @@ -547,7 +547,7 @@ sapuserexit() { if [ -x "$VALUE" ] then ocf_log info "Calling userexit ${NAME} with customer script file ${VALUE}" - eval "$VALUE" >& /dev/null + eval "$VALUE" > /dev/null 2>&1 ocf_log info "Exiting userexit ${NAME} with customer script file ${VALUE}, returncode: $?" else ocf_log warn "Attribute ${NAME} is set to ${VALUE}, but this file is not executable" diff --git a/rgmanager/src/resources/SAPInstance b/rgmanager/src/resources/SAPInstance index 94643c9..a97aaf6 100644 --- a/rgmanager/src/resources/SAPInstance +++ b/rgmanager/src/resources/SAPInstance @@ -234,7 +234,7 @@ sapuserexit() { if [ -x "$VALUE" ] then ocf_log info "Calling userexit ${NAME} with customer script file ${VALUE}" - eval "$VALUE" >& /dev/null + eval "$VALUE" > /dev/null 2>&1 ocf_log info "Exiting userexit ${NAME} with customer script file ${VALUE}, returncode: $?" else ocf_log warn "Attribute ${NAME} is set to ${VALUE}, but this file is not executable"
cluster-commits@lists.fedorahosted.org