Fixes #468: cron (virus wiper) (#469)

* Fixes #468: cron (virus wiper)
This commit is contained in:
Thomas VIAL 2017-01-11 10:52:39 +01:00 committed by GitHub
parent 69d3bac45e
commit 805506fbea
3 changed files with 9 additions and 5 deletions

4
target/bin/virus-wiper Normal file
View file

@ -0,0 +1,4 @@
#!/bin/bash
echo "Wipping virus older than $VIRUSMAILS_DELETE_DELAY days"
find /var/lib/amavis/virusmails/ -type f -mtime +$VIRUSMAILS_DELETE_DELAY -delete