diff options
author | Jonas Smedegaard <dr@jones.dk> | 2011-04-02 01:29:17 +0200 |
---|---|---|
committer | Jonas Smedegaard <dr@jones.dk> | 2011-04-02 01:29:17 +0200 |
commit | a63f1a2728a0e691c0e6f94a3cbb2d1ad13b5466 (patch) | |
tree | aab674a993ad0cc89a8ba944bfd14b05ad4f90e7 | |
parent | 6dde24c29f657b097e0521a8f3915db06540bd0f (diff) |
Improve cleanup script: use internal -remove find option.
-rwxr-xr-x | amavis/cron.daily/local-amavis | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/amavis/cron.daily/local-amavis b/amavis/cron.daily/local-amavis index eebfdce..3e51204 100755 --- a/amavis/cron.daily/local-amavis +++ b/amavis/cron.daily/local-amavis @@ -4,7 +4,7 @@ set -e -find /var/lib/amavis/virusmails/ -type f -name 'badh*' -exec rm -f '{}' ';' -find /var/lib/amavis/virusmails/ -type f -mtime +14 -exec rm -f '{}' ';' +find /var/lib/amavis/virusmails/ -type f -name 'badh*' -delete +find /var/lib/amavis/virusmails/ -type f -mtime +14 -delete exit 0 |