X-Git-Url: https://git.openstreetmap.org./chef.git/blobdiff_plain/f90f3de7232aea6fb8f26c906645d98cf603e565..d8a49acb15e988707f0f31054caa0e2ce8617c89:/cookbooks/tilelog/templates/default/tilelog.erb?ds=inline diff --git a/cookbooks/tilelog/templates/default/tilelog.erb b/cookbooks/tilelog/templates/default/tilelog.erb index 06014803d..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}" \ - --tile "${TILEFILE}" --host "${HOSTFILE}" +nice -n 19 /opt/tilelog/bin/tilelog --date "${DATE}" --generate-success \ + --tile "${TILEFILE}" --host "${HOSTFILE}" --app "${APPFILE}" -mv "${TILEFILE}" "${HOSTFILE}" "${OUTDIR}" +mv "${TILEFILE}" "${HOSTFILE}" "${APPFILE}" "${OUTDIR}" rm -rf "$TMPDIR"