Keep 7 days of log instead of 30

This commit is contained in:
Martin Boehm 2021-04-26 20:07:08 +02:00
parent 66023becd6
commit 1df8f8eb69

View File

@ -4,7 +4,7 @@ set -e
LOGS={{.Env.BlockbookInstallPath}}/{{.Coin.Alias}}/logs
find $LOGS -mtime +30 -type f -print0 | while read -r -d $'\0' log; do
find $LOGS -mtime +7 -type f -print0 | while read -r -d $'\0' log; do
# remove log if isn't opened by any process
if ! fuser -s $log; then
rm -f $log