From e517f49bcdd9b1afac9809154c8d727f2bc96847 Mon Sep 17 00:00:00 2001 From: Grant Slater Date: Wed, 20 Aug 2014 09:01:44 +0100 Subject: [PATCH] Fix planet-notes-dump cron escaping --- cookbooks/planet/templates/default/planet-notes-dump.cron.erb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cookbooks/planet/templates/default/planet-notes-dump.cron.erb b/cookbooks/planet/templates/default/planet-notes-dump.cron.erb index f4fa2e7f4..3c5709af1 100644 --- a/cookbooks/planet/templates/default/planet-notes-dump.cron.erb +++ b/cookbooks/planet/templates/default/planet-notes-dump.cron.erb @@ -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 -- 2.43.2