X-Git-Url: https://git.openstreetmap.org./chef.git/blobdiff_plain/537037d57a597aee1cbddb7699c17a71fc20d4c1..99e9619450e3177386c40cc08cc2249013e39dbd:/cookbooks/tilelog/templates/default/tilelog.erb?ds=sidebyside diff --git a/cookbooks/tilelog/templates/default/tilelog.erb b/cookbooks/tilelog/templates/default/tilelog.erb index 06014803d..0cb24ce4d 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,13 @@ export AWS_REGION="eu-west-1" TILEFILE="tiles-${DATE}.txt.xz" HOSTFILE="hosts-${DATE}.csv" +APPFILE="apps-${DATE}.csv" +COUNTRYFILE="countries-${DATE}.csv" nice -n 19 /opt/tilelog/bin/tilelog --date "${DATE}" \ - --tile "${TILEFILE}" --host "${HOSTFILE}" + --generate-success --generate-minimise --generate-location \ + --tile "${TILEFILE}" --host "${HOSTFILE}" --app "${APPFILE}" --country "${COUNTRYFILE}" -mv "${TILEFILE}" "${HOSTFILE}" "${OUTDIR}" +mv "${TILEFILE}" "${HOSTFILE}" "${APPFILE}" "${COUNTRYFILE}" "${OUTDIR}" rm -rf "$TMPDIR"