]> git.openstreetmap.org Git - chef.git/commitdiff
Fix planet-notes-dump cron escaping
authorGrant Slater <git@firefishy.com>
Wed, 20 Aug 2014 08:01:44 +0000 (09:01 +0100)
committerGrant Slater <git@firefishy.com>
Wed, 20 Aug 2014 08:01:44 +0000 (09:01 +0100)
cookbooks/planet/templates/default/planet-notes-dump.cron.erb

index f4fa2e7f434e043c90b00d1e0b485923628a4939..3c5709af15cc23bb5977b6661f5d28f0f9bb7e0c 100644 (file)
@@ -2,4 +2,4 @@ MAILTO=grant-smaug@firefishy.com
 0 3 * * * www-data /usr/local/bin/planet-notes-dump
 
 #Delete Planet Notes dump files older than 8 days
-0 8 * * * www-data find /store/planet/notes/20??/ -maxdepth 1 -type f -iname 'planet-notes-??????.osn*' -printf '%T@ %p\n' | sort -k 1nr | sed 's/^[^ ]* //' | tail -n +17 | xargs -r rm -f
+10 8 * * * www-data find /store/planet/notes/20??/ -maxdepth 1 -type f -iname 'planet-notes-??????.osn*' -printf '\%T@ \%p\n' | sort -k 1nr | sed 's/^[^ ]* //' | tail -n +17 | xargs -r rm -f