# HG changeset patch
# User Florian Haas <[email protected]>
# Date 1274014103 -7200
# Node ID 0b6db8fde1a8d947867cfed13b2df88bce157fd5
# Parent 2a6d69347b107dd3b4f754cd9fc75c17fadf71af
Low: SAPDatabase, SAPInstance: fix redirection (Debian #581073)
Fix possible bashism.
diff -r 2a6d69347b10 -r 0b6db8fde1a8 heartbeat/SAPDatabase
--- a/heartbeat/SAPDatabase Sun May 16 14:47:26 2010 +0200
+++ b/heartbeat/SAPDatabase Sun May 16 14:48:23 2010 +0200
@@ -537,7 +537,7 @@
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 -r 2a6d69347b10 -r 0b6db8fde1a8 heartbeat/SAPInstance
--- a/heartbeat/SAPInstance Sun May 16 14:47:26 2010 +0200
+++ b/heartbeat/SAPInstance Sun May 16 14:48:23 2010 +0200
@@ -377,7 +377,7 @@
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"
_______________________________________________________
Linux-HA-Dev: [email protected]
http://lists.linux-ha.org/mailman/listinfo/linux-ha-dev
Home Page: http://linux-ha.org/