summaryrefslogtreecommitdiff
path: root/src/Propellor/Property/SiteSpecific/JoeySites.hs
diff options
context:
space:
mode:
authorJoey Hess2015-09-13 12:47:48 -0400
committerJoey Hess2015-09-13 12:47:48 -0400
commit2af70d4ac7ff25a3e596de195abe40db46c74074 (patch)
treeca3be263344bfcb24b53eb6bbbc5ef3b5c942904 /src/Propellor/Property/SiteSpecific/JoeySites.hs
parent9003e331e4b225bd07e4c343ab77f975571cb7a3 (diff)
add virus collection cleanup
Diffstat (limited to 'src/Propellor/Property/SiteSpecific/JoeySites.hs')
-rw-r--r--src/Propellor/Property/SiteSpecific/JoeySites.hs3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/Propellor/Property/SiteSpecific/JoeySites.hs b/src/Propellor/Property/SiteSpecific/JoeySites.hs
index b6524f69..0a59452c 100644
--- a/src/Propellor/Property/SiteSpecific/JoeySites.hs
+++ b/src/Propellor/Property/SiteSpecific/JoeySites.hs
@@ -520,6 +520,9 @@ kiteMailServer = propertyList "kitenet.net mail server" $ props
`onChange` Service.restarted "amavisd-milter"
`describe` "amavisd-milter configured for postfix"
& Apt.serviceInstalledRunning "clamav-freshclam"
+ -- Workaround https://bugs.debian.org/569150
+ & Cron.niceJob "amavis-expire" Cron.Daily (User "root") "/"
+ "find /var/lib/amavis/virusmails/ -type f -ctime +7 -delete"
& dkimInstalled