File tree Expand file tree Collapse file tree 4 files changed +22
-1
lines changed
Expand file tree Collapse file tree 4 files changed +22
-1
lines changed Original file line number Diff line number Diff line change @@ -7,7 +7,8 @@ and this project adheres to [Semantic Versioning](http://semver.org/).
77## Unreleased
88
99### Added
10- - Error queue cleanup script
10+ - Script to clean extractors' tmp files.
11+ - Script for RabbitMQ error queue cleanup.
1112
1213## 1.10.1 - 2020-07-16
1314
Original file line number Diff line number Diff line change 1+ FROM alpine
2+
3+ COPY clean.sh list.txt /
4+
5+ CMD ["sh" , "/clean.sh" ]
Original file line number Diff line number Diff line change 1+ #! /bin/bash
2+
3+ LIST=list.txt
4+
5+ while IFS=, read -r path days;
6+ do
7+ case " $path " in \# * ) continue ;; esac
8+ echo " path: $path " , " days: $days "
9+ deleted=$( /usr/bin/find $path -maxdepth 1 -mindepth 1 -mtime +$days )
10+ echo $deleted
11+ rm -rf $deleted
12+ echo " deletion done"
13+ done < " $LIST "
14+
Original file line number Diff line number Diff line change 1+ #path,days
You can’t perform that action at this time.
0 commit comments