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 || true
+ /usr/bin/rsync /var/log/squid/zere.log.1.xz ironbelly::logs/tile.openstreetmap.org/<%= node[:hostname] %>-`date -d "-1 days" +%Y-%m-%d`.xz || true
endscript
}
LOGDIR=<%= @input_dir %>
OUTDIR=<%= @output_dir %>
if [ -z "$DATE" ]; then
- DATE=`date -d "2 days ago" "+%Y-%m-%d"`
+ DATE=`date -d "1 day ago" "+%Y-%m-%d"`
fi
TMPDIR=`mktemp -d -t tmp.XXXXXXXXX`
ORIGDIR=`pwd`