From: Tom Hughes Date: Tue, 20 May 2014 13:34:53 +0000 (+0100) Subject: Don't error if a temp file vanishes before we can remove it X-Git-Url: https://git.openstreetmap.org/chef.git/commitdiff_plain/a2131407eb794673e66a2289ebda25007b4f561a Don't error if a temp file vanishes before we can remove it --- diff --git a/cookbooks/tile/templates/default/export.cron.erb b/cookbooks/tile/templates/default/export.cron.erb index da828546e..d2f3be178 100644 --- a/cookbooks/tile/templates/default/export.cron.erb +++ b/cookbooks/tile/templates/default/export.cron.erb @@ -1,4 +1,6 @@ #!/bin/sh +# DO NOT EDIT - This file is being maintained by Chef + # Removes stale tmp files from the export tab -exec find /tmp -name 'export??????' -mmin +60 -delete +exec find /tmp -name 'export??????' -mmin +60 -print0 | xargs -0r rm -f