Anybody have any idea why CATALINA_HOME would behave this way? I mean, it echos $CATALINA_HOME as the last action before the exit, then if the first command I do after the exit is to echo it again, and it's different... wait, what?
WM
-=-=-=-=-=-=-
# Get standard Java environment variables
if $os400; then
# -r will Only work on the os400 if the files are:
# 1. owned by the user
# 2. owned by the PRIMARY group of the user
# this will not work if the user belongs in secondary groups
BASEDIR="$CATALINA_HOME"
. "$CATALINA_HOME"/bin/setclasspath.sh
else
if [ -r "$CATALINA_HOME"/bin/setclasspath.sh ]; then
BASEDIR="$CATALINA_HOME"
. "$CATALINA_HOME"/bin/setclasspath.sh
else
echo "Cannot find $CATALINA_HOME/bin/setclasspath.sh"
echo "This file is needed to run this program"
echo "Yes, I am really exiting here and changing $CATALINA_HOME back, somehow."
exit 1
fi
fi
--More--(45%)
[6]+ Stopped more catalina.sh
wmcduff@Fedora2:/usr/local/fedora/tomcat6/bin$ sudo /usr/local/fedora/tomcat6/bin/startup.sh
Cannot find /usr/share/tomcat6/bin/setclasspath.sh
This file is needed to run this program
Yes, I am really exiting here and changing /usr/share/tomcat6 back, somehow.
wmcduff@Fedora2:/usr/local/fedora/tomcat6/bin$ echo $CATALINA_HOME
/usr/local/fedora/tomcat6
wmcduff@Fedora2:/usr/local/fedora/tomcat6/bin$