diff options
author | Kuang-che Wu <kcwu@csie.org> | 2014-12-06 14:41:54 +0800 |
---|---|---|
committer | Kuang-che Wu <kcwu@csie.org> | 2014-12-06 15:04:51 +0800 |
commit | b9e08c6ffbfe964de41ba30d593ebba579e743e8 (patch) | |
tree | fece1f924234b9756c3b26b2e75d41898515c9ee /sources | |
parent | f9994a2346cab060274946a82c444d087f67b523 (diff) | |
download | taginfo-b9e08c6ffbfe964de41ba30d593ebba579e743e8.tar taginfo-b9e08c6ffbfe964de41ba30d593ebba579e743e8.tar.gz |
Prevent download db files if not updated yet
This is no effect to production server since the main server update
everyday. However, this is helpful for test sites, which may run update
script several times during developing.
Diffstat (limited to 'sources')
-rwxr-xr-x | sources/update_all.sh | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sources/update_all.sh b/sources/update_all.sh index dfe31c6..b511ecd 100755 --- a/sources/update_all.sh +++ b/sources/update_all.sh @@ -50,7 +50,7 @@ for source in $SOURCES_DOWNLOAD; do echo "=====================================" echo "Downloading $source..." mkdir -p $DIR/$source - curl --silent --fail --output $DIR/download/taginfo-$source.db.bz2 http://taginfo.openstreetmap.org/download/taginfo-$source.db.bz2 + curl --silent --fail --output $DIR/download/taginfo-$source.db.bz2 --time-cond $DIR/download/taginfo-$source.db.bz2 http://taginfo.openstreetmap.org/download/taginfo-$source.db.bz2 bzcat $DIR/download/taginfo-$source.db.bz2 >$DIR/$source/taginfo-$source.db echo "Done." done |