On Sun, Apr 22, 2001 at 10:44:33PM +0200, Tbone wrote:
> Hi,
>
> I have just installed jboss-2.2 , and had some problems with the startup
> script bin/run.sh
>
> whenever i started the script outside the bin directory the VM throwed some
> exceptions in my face til i finally a discovered the problem : the working
> directory
> e.g :
> #!/bin/sh
>
> # a little fault in the run.sh script,
> # startup failed when started run.sh from another directory
> cd $JBOSS_HOME/bin
How about, instead of relying on this JBOSS_HOME variable, something like
cd `dirname $0`
Or, if you really want to use JBOSS_HOME, how about
if [ -z "$JBOSS_HOME" ]; then
JBOSS_HOME=`dirname $0`/..
fi
Toby.
_______________________________________________
JBoss-user mailing list
[EMAIL PROTECTED]
http://lists.sourceforge.net/lists/listinfo/jboss-user