Bug 44115 - Make lenya.sh callable from any directory
Summary: Make lenya.sh callable from any directory
Status: NEW
Alias: None
Product: Lenya
Classification: Unclassified
Component: Miscellaneous (show other bugs)
Version: Trunk
Hardware: All other
: P2 normal
Target Milestone: 2.0.1
Assignee: Lenya Developers
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-12-20 11:49 UTC by solprovider
Modified: 2007-12-20 11:49 UTC (History)
0 users



Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description solprovider 2007-12-20 11:49:53 UTC
This was fixed for Lenya 1.2.6 and 1.3 after discussion on the Dev ML and
http://issues.apache.org/bugzilla/show_bug.cgi?id=43748

Needs to be fixed for 2.0

CURRENT CODE (Trunk on 20071220):
  if [ "$LENYA_HOME" = "" ] ; then
    LENYA_HOME='.'
    # TODO: Make it startable from any directory
    #LENYA_HOME=`dirname $0`
    #echo "LENYA_HOME: $LENYA_HOME"
  fi

REPLACE WITH:
cd `dirname $0`
LENYA_HOME=`pwd -P`