Fix race condition cleaning up munin CGI graphs
[mirror/dsa-puppet.git] / modules / munin / files / master-cleanup-cron
index 883998a..7092b4b 100644 (file)
@@ -5,5 +5,4 @@ MAILTO=root
 
 @daily munin    find /var/lib/munin  -maxdepth 1 -type f -name 'state-*' -mtime +90 -delete
 @daily munin    find /var/lib/munin/debian.org -maxdepth 1 -type f -mtime +90 -delete
-@daily www-data find /var/lib/munin/cgi-tmp -type f -mtime +10 -delete
-@daily www-data find /var/lib/munin/cgi-tmp -mindepth 2 -type d -empty -delete
+@daily www-data find /var/lib/munin/cgi-tmp -type f -mtime +10 -delete ; find /var/lib/munin/cgi-tmp -mindepth 2 -type d -empty -delete