ups
This commit is contained in:
parent
7266b9df98
commit
36bfb049de
17
www/jakarta-tomcat/v4/files/tomcat.rc
Normal file
17
www/jakarta-tomcat/v4/files/tomcat.rc
Normal file
@ -0,0 +1,17 @@
|
||||
# $OpenBSD: tomcat.rc,v 1.1 2003/12/15 21:25:06 sturm Exp $
|
||||
#
|
||||
# define JAVA_HOME for tomcat-user; sudo doesn't pass environment variables
|
||||
# allows to start tomcat with following command:
|
||||
# $ sudo -u tomcat y0y0y0/bin/startup.sh
|
||||
#
|
||||
|
||||
JAVA_HOME=y0y0y1
|
||||
|
||||
# override other environment options:
|
||||
#CATALINA_HOME=y0y0y0
|
||||
#CATALINA_BASE=/var/tomcat
|
||||
#CATALINA_TMPDIR=$CATALINA_BASE/temp
|
||||
#JAVA_OPTS=
|
||||
#JPDA_TRANSPORT=
|
||||
#JPDA_ADDRESS=
|
||||
#JSSE_HOME=
|
20
www/jakarta-tomcat/v4/patches/patch-bin_setclasspath_sh
Normal file
20
www/jakarta-tomcat/v4/patches/patch-bin_setclasspath_sh
Normal file
@ -0,0 +1,20 @@
|
||||
$OpenBSD: patch-bin_setclasspath_sh,v 1.1 2003/12/15 21:25:06 sturm Exp $
|
||||
--- bin/setclasspath.sh.orig 2003-07-31 13:29:58.000000000 -0400
|
||||
+++ bin/setclasspath.sh 2003-10-16 22:04:13.000000000 -0400
|
||||
@@ -4,10 +4,16 @@
|
||||
# $Id: patch-bin_setclasspath_sh,v 1.1 2003/12/15 21:25:06 sturm Exp $
|
||||
# -----------------------------------------------------------------------------
|
||||
|
||||
+# Read $JAVA_HOME - sudo doesn't pass environment variables
|
||||
+if [ -r "y0y0y0/tomcat/tomcat.rc" ]; then
|
||||
+ . y0y0y0/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 \`y0y0y0/tomcat/tomcat.rc' to point to your \$JAVA_HOME"
|
||||
exit 1
|
||||
fi
|
||||
if $os400; then
|
Loading…
Reference in New Issue
Block a user