From dd6f8c8e447861af14ab606efb77e68c7f895517 Mon Sep 17 00:00:00 2001 From: mturk Date: Thu, 4 Mar 2010 07:27:32 +0000 Subject: [PATCH] If CATALINA_BASE is not defined we would try to read directly from /bin/setenv.sh file git-svn-id: https://svn.apache.org/repos/asf/tomcat/trunk@918883 13f79535-47bb-0310-9956-ffa450edef68 --- bin/catalina.sh | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/bin/catalina.sh b/bin/catalina.sh index 1baf7fc53..a2eb4d8bf 100755 --- a/bin/catalina.sh +++ b/bin/catalina.sh @@ -111,10 +111,11 @@ PRGDIR=`dirname "$PRG"` # but allow them to be specified in setenv.sh, in rare case when it is needed. CLASSPATH= -if [ -r "$CATALINA_BASE"/bin/setenv.sh ]; then - . "$CATALINA_BASE"/bin/setenv.sh -elif [ -r "$CATALINA_HOME"/bin/setenv.sh ]; then - . "$CATALINA_HOME"/bin/setenv.sh +SETENVPATH="${CATALINA_BASE:-$CATALINA_HOME}" +if [ -r "$SETENVPATH/bin/setenv.sh" ]; then + . "$SETENVPATH/bin/setenv.sh" +elif [ -r "$CATALINA_HOME/bin/setenv.sh" ]; then + . "$CATALINA_HOME/bin/setenv.sh" fi # For Cygwin, ensure paths are in UNIX format before anything is touched -- 2.11.0