Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
openSUSE:12.3
cluster-glue
bnc662816_cluster-glue_hb_report_abspath.patch
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File bnc662816_cluster-glue_hb_report_abspath.patch of Package cluster-glue
# HG changeset patch # Parent 4b08977bece328dd582ba23e9d92a7aa728133fd Low: hb_report: use absolute path when invoking slaves (bnc#662816) diff -r 4b08977bece3 hb_report/hb_report.in --- a/hb_report/hb_report.in Fri Nov 04 17:59:44 2011 +0100 +++ b/hb_report/hb_report.in Mon Nov 07 14:55:48 2011 +0100 @@ -27,6 +27,13 @@ unset LANG export LC_ALL=POSIX PROG=`basename $0` +PROGDIR=`dirname $0` +echo "$PROGDIR" | grep -qs '^/' || { + test -f @sbindir@/$PROG && + PROGDIR=@sbindir@ + test -f $HA_NOARCHBIN/$PROG && + PROGDIR=$HA_NOARCHBIN +} # the default syslog facility is not (yet) exported by heartbeat # to shell scripts @@ -461,7 +468,7 @@ start_slave_collector() { $SUDO hb_report __slave else ssh $SSH_OPTS_AUTH $node \ - "$SUDO hb_report __slave" + "$SUDO $PROGDIR/hb_report __slave" fi | (cd $WORKDIR && tar xf -) & SLAVEPIDS="$SLAVEPIDS $!"
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor