Skip to content

Commit

Permalink
[tomcat] Correct path to the tomcat logging configuration file
Browse files Browse the repository at this point in the history
  • Loading branch information
dcermak committed Dec 12, 2024
1 parent 9883443 commit e05e614
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/bci_build/package/apache_tomcat.py
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@ def _get_java_packages(jre_major: int) -> list[str]:
custom_end=rf"""{DOCKERFILE_RUN} mkdir -p /var/log/tomcat; chown --recursive tomcat:tomcat /var/log/tomcat
{DOCKERFILE_RUN} ln -s {_CATALINA_HOME} /usr/local/tomcat
{DOCKERFILE_RUN} \
sed -i /etc/tomcat/logging.properties \
sed -i /usr/share/tomcat/conf/logging.properties \
-e 's|org\.apache\.catalina\.core\.ContainerBase\.\[Catalina\]\.\[localhost\]\.handlers =.*|org.apache.catalina.core.ContainerBase.[Catalina].[localhost].handlers = java.util.logging.ConsoleHandler|' \
-e 's|org\.apache\.catalina\.core\.ContainerBase\.\[Catalina\]\.\[localhost\]\.\[/manager\]\.handlers =.*|org.apache.catalina.core.ContainerBase.[Catalina].[localhost].[/manager].handlers = java.util.logging.ConsoleHandler|' \
-e 's|org\.apache\.catalina\.core\.ContainerBase\.\[Catalina\]\.\[localhost\]\.\[/host-manager\]\.handlers =.*|org.apache.catalina.core.ContainerBase.[Catalina].[localhost].[/host-manager].handlers = java.util.logging.ConsoleHandler|'
Expand Down

0 comments on commit e05e614

Please sign in to comment.