aboutsummaryrefslogtreecommitdiff
path: root/sources/db
diff options
context:
space:
mode:
authorJochen Topf <jochen@topf.org>2014-05-13 17:50:06 +0200
committerJochen Topf <jochen@topf.org>2014-05-13 17:50:06 +0200
commitb7bebb4060149235ec29beb6ac9c076f763ebdef (patch)
treec31d754f57b033fc66014c872f04074432a252ce /sources/db
parent421e6cdb19833e9d335ee48c8067b9a8bb4b1aec (diff)
downloadtaginfo-b7bebb4060149235ec29beb6ac9c076f763ebdef.tar
taginfo-b7bebb4060149235ec29beb6ac9c076f763ebdef.tar.gz
Fix selection db path and general cleanups in update scripts.
Diffstat (limited to 'sources/db')
-rwxr-xr-xsources/db/update.sh7
1 files changed, 2 insertions, 5 deletions
diff --git a/sources/db/update.sh b/sources/db/update.sh
index 24d430b..a189c96 100755
--- a/sources/db/update.sh
+++ b/sources/db/update.sh
@@ -27,7 +27,7 @@ fi
echo "`$DATECMD` Start db..."
DATABASE=$DIR/taginfo-db.db
-SELECTION_DB=$DIR/selection.db
+SELECTION_DB=$DIR/../selection.db
rm -f $DATABASE
@@ -46,10 +46,7 @@ width=`../../bin/taginfo-config.rb geodistribution.width`
height=`../../bin/taginfo-config.rb geodistribution.height`
min_tag_combination_count=`../../bin/taginfo-config.rb sources.master.min_tag_combination_count 1000`
-TAGSTATS=`../../bin/taginfo-config.rb sources.db.tagstats`
-if [ "x" = "x$TAGSTATS" ]; then
- TAGSTATS="./tagstats"
-fi
+TAGSTATS=`../../bin/taginfo-config.rb sources.db.tagstats ../../tagstats/tagstats`
if [ -f $SELECTION_DB ]; then
OPEN_SELECTION_DB="--selection-db=$SELECTION_DB"