openbsd-ports/www/jakarta-tomcat/v4/patches/patch-bin_setclasspath_sh
kurt fb22f400b8 overhaul of v4 and an update to 4.1.31
okay ian@, no objection naddy@
2005-02-02 19:37:30 +00:00

21 lines
831 B
Plaintext

$OpenBSD: patch-bin_setclasspath_sh,v 1.2 2005/02/02 19:37:30 kurt Exp $
--- bin/setclasspath.sh.orig Sat Sep 25 12:42:54 2004
+++ bin/setclasspath.sh Tue Dec 7 23:11:58 2004
@@ -4,10 +4,16 @@
# $Id: patch-bin_setclasspath_sh,v 1.2 2005/02/02 19:37:30 kurt Exp $
# -----------------------------------------------------------------------------
+# Read $JAVA_HOME - sudo doesn't pass environment variables
+if [ -r "%%SYSCONFDIR%%/tomcat/tomcat.rc" ]; then
+ . %%SYSCONFDIR%%/tomcat/tomcat.rc
+fi
+
# Make sure prerequisite environment variables are set
if [ -z "$JAVA_HOME" ]; then
echo "The JAVA_HOME environment variable is not defined"
echo "This environment variable is needed to run this program"
+ echo "Edit \`%%SYSCONFDIR%%/tomcat/tomcat.rc' to point to your \$JAVA_HOME"
exit 1
fi
if $os400; then