From d1aa1b279a4737ecb852f36412a9017253e0e874 Mon Sep 17 00:00:00 2001 From: Tom Hughes Date: Sun, 18 May 2014 15:39:15 +0100 Subject: [PATCH] Ignore errors transferring tile cache logs --- cookbooks/tilecache/templates/default/logrotate.squid.erb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cookbooks/tilecache/templates/default/logrotate.squid.erb b/cookbooks/tilecache/templates/default/logrotate.squid.erb index 87cafabd4..6ce392c1d 100644 --- a/cookbooks/tilecache/templates/default/logrotate.squid.erb +++ b/cookbooks/tilecache/templates/default/logrotate.squid.erb @@ -12,6 +12,6 @@ sharedscripts postrotate test ! -e /var/run/squid.pid || /usr/sbin/squid -k rotate - /usr/bin/rsync /var/log/squid/zere.log.2.xz ironbelly::logs/tile.openstreetmap.org/<%= node[:hostname] %>-`date -d "-2 days" +%Y-%m-%d`.xz + /usr/bin/rsync /var/log/squid/zere.log.2.xz ironbelly::logs/tile.openstreetmap.org/<%= node[:hostname] %>-`date -d "-2 days" +%Y-%m-%d`.xz || true endscript } -- 2.39.5