Skip to content

Commit

Permalink
Simplified
Browse files Browse the repository at this point in the history
  • Loading branch information
mihxil committed Jan 18, 2025
1 parent 75af847 commit 89c73fa
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 10 deletions.
4 changes: 4 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -151,11 +151,15 @@ RUN echo Catalina base: ${CATALINA_BASE} && \
ONBUILD ARG PROJECT_VERSION
ONBUILD ARG NAME
ONBUILD ARG CONTEXT
ONBUILD ENV CONTEXT=${CONTEXT}

# Link to use in 404 page of tomcat
ONBUILD ARG DOCLINK
ONBUILD ENV DOCLINK=${DOCLINK}




ONBUILD ARG JARS_TO_SCAN=UNSET
ONBUILD ARG CLUSTERING
ONBUILD ARG COPY_TESTS
Expand Down
13 changes: 3 additions & 10 deletions parse_tomcat_access_logs.pl
Original file line number Diff line number Diff line change
Expand Up @@ -6,14 +6,10 @@ =head1 parse_tomcat_access_logs()
Make an abstract of the tomcat access logs
Two (optional) positional parameters
Parameters
If three parameters:
- directory
- max age in minutes
- max age in minutes (defaults to 1440, one day)
If one parameter, directory defaults to /data/log
- max age in minutes
=cut

Expand All @@ -23,10 +19,7 @@ =head1 parse_tomcat_access_logs()

my $dir="/data/logs";
my $age = "60"; # max age in minutes
if (scalar(@ARGV) ge 2) {
$dir = $ARGV[0];
$age = $ARGV[1];
} elsif (scalar(@ARGV) ge 1) {
if (scalar(@ARGV) ge 1) {
$age = $ARGV[0];
}

Expand Down

0 comments on commit 89c73fa

Please sign in to comment.