Use version_compare for versions comparison.

This commit is contained in:
Andrea Dell'Amico 2024-07-22 11:26:58 +02:00
parent 7239714176
commit 32dab25a42
Signed by: adellam
GPG Key ID: 147ABE6CEB9E20FF
1 changed files with 1 additions and 1 deletions

View File

@ -21,7 +21,7 @@
{% else %} {% else %}
<Server port="{{ item.shutdown_port }}" shutdown="{{ tomcat_m_shutdown_pwd }}"> <Server port="{{ item.shutdown_port }}" shutdown="{{ tomcat_m_shutdown_pwd }}">
{% endif %} {% endif %}
{% if tomcat_version <= 7 %} {% if tomcat_version is version_compare('7', '<=') %}
<Listener className="org.apache.catalina.core.JasperListener" /> <Listener className="org.apache.catalina.core.JasperListener" />
{% endif %} {% endif %}
<!-- Prevent memory leaks due to use of particular java/javax APIs--> <!-- Prevent memory leaks due to use of particular java/javax APIs-->