From 4a80a4539cc99c8985d350e6de9b2d05f45ddd7c Mon Sep 17 00:00:00 2001 From: mh Date: Thu, 1 Jul 2010 06:07:30 +0200 Subject: actually delete the files --- manifests/expire.pp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/manifests/expire.pp b/manifests/expire.pp index 4381c07..5f89580 100644 --- a/manifests/expire.pp +++ b/manifests/expire.pp @@ -15,7 +15,7 @@ class dovecot::expire { '': { $dovecot_expire_days = '14' } } File['/etc/cron.daily/dovecot-expire']{ - content => "find ${dovecot_mail_location} -regex '.*/\.\(${dovecot_expire_dirs}\)\(/.*\)?\/\(cur\|new\)/.*' -type f -ctime +${dovecot_expire_days}\n" + content => "find ${dovecot_mail_location} -regex '.*/\.\(${dovecot_expire_dirs}\)\(/.*\)?\/\(cur\|new\)/.*' -type f -ctime +${dovecot_expire_days} -delete\n" } } else { File['/etc/cron.daily/dovecot-expire']{ -- cgit v1.2.3