Skip to content

Commit

Permalink
Merge pull request #20 from stephankn/patch-3
Browse files Browse the repository at this point in the history
if configured, use stats_dir from config file
  • Loading branch information
woodpeck authored Sep 22, 2021
2 parents 7194348 + afa1060 commit 62e8313
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion utils/tirex-create-stats-and-update-tiles.sh
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,10 @@ exec >>/var/log/tirex/tirex-create-stats-and-update-tiles.log 2>&1
[ -f /osm/update/osmupdate.lock ] && exit

# directory where the statistics should go
DIR=/var/lib/tirex/stats
DIR=$(sed -n 's/^stats_dir=//p' /etc/tirex/tirex.conf)
if [ -z "$DIR" ]; then
DIR=/var/lib/tirex/stats
fi

DATE=`date +%FT%H`

Expand Down

0 comments on commit 62e8313

Please sign in to comment.