Skip to content

Commit

Permalink
create tomcat log directory
Browse files Browse the repository at this point in the history
  • Loading branch information
ericholguin committed Apr 17, 2024
1 parent c6abc40 commit 7a46b97
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions traffic_router/tomcat-rpm/tomcat.spec
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ Source: %{_sourcedir}/apache-tomcat-%{version}.tar.gz
Requires: java-11-openjdk-headless

%define tomcat_home /opt/tomcat
%define TOMCAT_LOG_DIR /var/log/tomcat

%description
This rpm is a minimal install of the Tomcat servlet container version 9.0.
Expand Down Expand Up @@ -74,6 +75,9 @@ fi
%{tomcat_home}

%post
if [ ! -d %{TOMCAT_LOG_DIR} ]; then
%__mkdir -p %{TOMCAT_LOG_DIR}
fi

%preun

Expand Down

0 comments on commit 7a46b97

Please sign in to comment.