From a63f1a2728a0e691c0e6f94a3cbb2d1ad13b5466 Mon Sep 17 00:00:00 2001 From: Jonas Smedegaard Date: Sat, 2 Apr 2011 01:29:17 +0200 Subject: Improve cleanup script: use internal -remove find option. --- amavis/cron.daily/local-amavis | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'amavis/cron.daily/local-amavis') 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 -- cgit v1.2.3