diff --git a/templates/tomcat-start.sh.j2 b/templates/tomcat-start.sh.j2 index 8038dd7..59e3b11 100644 --- a/templates/tomcat-start.sh.j2 +++ b/templates/tomcat-start.sh.j2 @@ -8,8 +8,8 @@ set -e # Load the service settings . /etc/default/tomcat-instance-{{ item.http_port }} -# Find the Java runtime and set JAVA_HOME -. /usr/libexec/tomcat{{ tomcat_version }}/tomcat-locate-java.sh +# We set JAVA_HOME in /etc/default/tomcat-instance-{{ item.http_port }} +# . /usr/libexec/tomcat{{ tomcat_version }}/tomcat-locate-java.sh # Set the JSP compiler if configured in the /etc/default/tomcat10 file [ -n "$JSP_COMPILER" ] && JAVA_OPTS="$JAVA_OPTS -Dbuild.compiler=\"$JSP_COMPILER\""