From 3f86df0baa801df06eb7224556c46e91e01b11ce Mon Sep 17 00:00:00 2001 From: Andrea Dell'Amico Date: Fri, 1 Jun 2018 18:49:46 +0200 Subject: [PATCH] library/roles/tomcat-multiple-instances/templates/tomcat-default.j2: Fix the JVM tmp directory path. --- tomcat-multiple-instances/templates/tomcat-default.j2 | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/tomcat-multiple-instances/templates/tomcat-default.j2 b/tomcat-multiple-instances/templates/tomcat-default.j2 index 2806540f..70ac3554 100644 --- a/tomcat-multiple-instances/templates/tomcat-default.j2 +++ b/tomcat-multiple-instances/templates/tomcat-default.j2 @@ -51,7 +51,11 @@ JAVA_OPTS="${JAVA_OPTS} -XX:+DisableAttachMechanism -Dcom.sun.management.jmxremo JAVA_OPTS="${JAVA_OPTS} -agentlib:jdwp=transport=dt_socket,address={{ item.remote_debugging_port }},server=y,suspend=n" {% endif %} # WARNING: This directory will be destroyed and recreated at every startup ! -JVM_TMP={{ item.instance_path }}/tmp +{% if item.catalina_tmp_directory is defined %} +JVM_TMP={{ item.catalina_tmp_directory }}/jvm_tmp +{% else %} +JVM_TMP={{ item.instance_path }}/tmp/jvm_tmp +{% endif %} {% if item.catalina_tmp_directory is defined %} export CATALINA_TMPDIR={{ item.catalina_tmp_directory }} {% endif %}