Skip to content

Commit

Permalink
Merge pull request #3 from brown-bnc/feat-purge-files
Browse files Browse the repository at this point in the history
Feature purge only files
  • Loading branch information
kmilo9999 authored Jul 28, 2023
2 parents a386c45 + db8a135 commit 94cc57c
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,6 @@ ENV PARENT_PATH=/data/xnat
ENV DAYS_TO_CLEAN=60

# Clean logs files older than $DAYS_TO_CLEAN days
CMD /usr/bin/find $PARENT_PATH/home/logs -name '*.log.*' -mtime +$DAYS_TO_CLEAN -delete\
&& /usr/bin/find $PARENT_PATH/cache -mtime +$DAYS_TO_CLEAN -delete\
&& /usr/bin/find $PARENT_PATH/build -mtime +$DAYS_TO_CLEAN -delete
CMD /usr/bin/find $PARENT_PATH/home/logs -type f -name '*.log.*' -mtime +$DAYS_TO_CLEAN -delete\
&& /usr/bin/find $PARENT_PATH/cache -type f -mtime +$DAYS_TO_CLEAN -delete\
&& /usr/bin/find $PARENT_PATH/build -type f -mtime +$DAYS_TO_CLEAN -delete

0 comments on commit 94cc57c

Please sign in to comment.