From b9e08c6ffbfe964de41ba30d593ebba579e743e8 Mon Sep 17 00:00:00 2001 From: Kuang-che Wu Date: Sat, 6 Dec 2014 14:41:54 +0800 Subject: 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. --- sources/update_all.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'sources') 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 -- cgit v1.2.3