Package: heartbeat Version: 2.1.3-6 Severity: normal Tags: patch User: [EMAIL PROTECTED] Usertags: origin-ubuntu hardy ubuntu-patch
Attached patch fixes some bashisms in a couple of scripts. -- System Information: Debian Release: lenny/sid APT prefers intrepid APT policy: (500, 'intrepid') Architecture: i386 (i686) Kernel: Linux 2.6.24-16-generic (SMP w/1 CPU core) Locale: LANG=C, LC_CTYPE=C (charmap=ANSI_X3.4-1968) (ignored: LC_ALL set to C) Shell: /bin/sh linked to /bin/dash
diff -ruN heartbeat-2.1.3.orig/resources/OCF/Filesystem heartbeat-2.1.3/resources/OCF/Filesystem --- heartbeat-2.1.3.orig/resources/OCF/Filesystem 2007-12-21 16:32:27.000000000 +0100 +++ heartbeat-2.1.3/resources/OCF/Filesystem 2008-06-19 22:50:15.000000000 +0200 @@ -188,7 +188,7 @@ } determine_blockdevice() { - if [ $blockdevice == "yes" ]; then + if [ $blockdevice = "yes" ]; then return fi @@ -301,7 +301,7 @@ else OCFS2_CLUSTER=$(find "$OCFS2_CONFIGFS" -maxdepth 1 -mindepth 1 -type d -printf %f 2>/dev/null) set -- $OCFS2_CLUSTER - local n="$#" + local n; n="$#" if [ $n -gt 1 ]; then ocf_log err "$OCFS2_CLUSTER: several clusters found." exit $OCF_ERR_GENERIC @@ -453,11 +453,11 @@ return $OCF_ERR_UNIMPLEMENTED fi - local n_type="$OCF_RESKEY_CRM_meta_notify_type" - local n_op="$OCF_RESKEY_CRM_meta_notify_operation" - local n_active="$OCF_RESKEY_CRM_meta_notify_active_uname" - local n_stop="$OCF_RESKEY_CRM_meta_notify_stop_uname" - local n_start="$OCF_RESKEY_CRM_meta_notify_start_uname" + local n_type; n_type="$OCF_RESKEY_CRM_meta_notify_type" + local n_op; n_op="$OCF_RESKEY_CRM_meta_notify_operation" + local n_active; n_active="$OCF_RESKEY_CRM_meta_notify_active_uname" + local n_stop; n_stop="$OCF_RESKEY_CRM_meta_notify_stop_uname" + local n_start; n_start="$OCF_RESKEY_CRM_meta_notify_start_uname" ocf_log info "$OCFS2_UUID: notify: $n_type for $n_op" ocf_log info "$OCFS2_UUID: notify active: $n_active" @@ -506,7 +506,7 @@ ocf_log info "$OCFS2_UUID: post-processed active: $n_active" - local n_myself=${HA_CURHOST:-$(uname -n | tr '[A-Z]' '[a-z]')} + local n_myself; n_myself=${HA_CURHOST:-$(uname -n | tr '[A-Z]' '[a-z]')} ocf_log info "$OCFS2_UUID: I am node $n_myself." case " $n_active " in @@ -605,7 +605,7 @@ if [ "X${HOSTOS}" = "XOpenBSD" ];then PIDS=`fstat | grep ${SUB} | awk '{print $3}'` for PID in ${PIDS};do - kill -9 ${PID} + kill -s 9 ${PID} ocf_log info "Sent kill -9 to ${PID}" done else diff -ruN heartbeat-2.1.3.orig/resources/OCF/Xen heartbeat-2.1.3/resources/OCF/Xen --- heartbeat-2.1.3.orig/resources/OCF/Xen 2007-12-21 16:32:27.000000000 +0100 +++ heartbeat-2.1.3/resources/OCF/Xen 2008-06-19 22:43:44.000000000 +0200 @@ -193,7 +193,7 @@ if [ $? -eq ${OCF_NOT_RUNNING} ];then return ${OCF_NOT_RUNNING} fi - if [ "X${OCF_RESKEY_monitor_scripts}" == "X" ];then + if [ "X${OCF_RESKEY_monitor_scripts}" = "X" ];then return ${OCF_SUCCESS} fi for SCRIPT in ${OCF_RESKEY_monitor_scripts};do