X-Git-Url: https://git.openstreetmap.org./chef.git/blobdiff_plain/2bfb0ef07fb64314f5c4ded641a8c280df9c1d0b..d8a49acb15e988707f0f31054caa0e2ce8617c89:/cookbooks/tilelog/templates/default/tilelog.erb diff --git a/cookbooks/tilelog/templates/default/tilelog.erb b/cookbooks/tilelog/templates/default/tilelog.erb index 86eea918b..2c8799b1c 100644 --- a/cookbooks/tilelog/templates/default/tilelog.erb +++ b/cookbooks/tilelog/templates/default/tilelog.erb @@ -3,7 +3,7 @@ set -e if [ -z "$DATE" ] then - DATE=$(date -d "1 day ago" "+%Y-%m-%d") + DATE=$(date -u -d "1 day ago" "+%Y-%m-%d") fi OUTDIR="<%= @output_dir %>" @@ -17,10 +17,11 @@ export AWS_REGION="eu-west-1" TILEFILE="tiles-${DATE}.txt.xz" HOSTFILE="hosts-${DATE}.csv" +APPFILE="apps-${DATE}.csv" nice -n 19 /opt/tilelog/bin/tilelog --date "${DATE}" --generate-success \ - --tile "${TILEFILE}" --host "${HOSTFILE}" + --tile "${TILEFILE}" --host "${HOSTFILE}" --app "${APPFILE}" -mv "${TILEFILE}" "${HOSTFILE}" "${OUTDIR}" +mv "${TILEFILE}" "${HOSTFILE}" "${APPFILE}" "${OUTDIR}" rm -rf "$TMPDIR"