Keep 7 days of log instead of 30
This commit is contained in:
parent
66023becd6
commit
1df8f8eb69
@ -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
|
||||
|
||||
Loading…
Reference in New Issue
Block a user