Skip to content

Commit

Permalink
Changes to make the shell script run on AIX and Solaris
Browse files Browse the repository at this point in the history
  • Loading branch information
bsnyder authored and Ryan Morgan committed Mar 4, 2010
1 parent c3951a9 commit c5d579c
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions bin/hqapi.sh
@@ -1,8 +1,12 @@
#!/bin/bash
#!/bin/sh

cd `dirname $0`/..
RUNDIR=`pwd`
RUNDIR=`dirname $0`/..

CLASSPATH=$CLASSPATH$(find -L $RUNDIR -name "*.jar" -exec printf :{} ';')
HQAPI_JAR=`ls $RUNDIR/*.jar`
CLASSPATH=$CLASSPATH:$RUNDIR/conf:$HQAPI_JAR

for i in `ls $RUNDIR/lib/*.jar`; do
CLASSPATH=$CLASSPATH:$i
done

java -cp $CLASSPATH org.hyperic.hq.hqapi1.tools.Shell "$@"

0 comments on commit c5d579c

Please sign in to comment.