Skip to content
This repository has been archived by the owner on Feb 23, 2021. It is now read-only.

Commit

Permalink
admins and tz were not included in route tar. geojson is single threa…
Browse files Browse the repository at this point in the history
…ded for now to avoid fd error.
  • Loading branch information
gknisely committed Oct 3, 2017
1 parent 2b8b762 commit 0e00a52
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions scripts/cut_tiles.sh
Original file line number Diff line number Diff line change
Expand Up @@ -196,8 +196,6 @@ if [[ "$INCLUDE_EXTRAS" == "true" ]]; then
cp_stamp ${DATA_DIR}/$(basename ${admin_file}) ${stamp}
cp_stamp ${DATA_DIR}/$(basename ${timezone_file}) ${stamp}
else
rm -f ${admin_file}
rm -f ${timezone_file}
rm -f maproulette_tasks.geojson
fi

Expand All @@ -210,6 +208,7 @@ if [ "$BUILD_GEOJSON_OSMLR" == "true" ] && [ -n "$S3_SEGMENT_PATH" ]; then
geojson_osmlr \
-i ${OSMLR_DIR} \
-o ${TILES_DIR}/osmlr \
-t 1 \
--config ${CONF_FILE}
catch_exception

Expand All @@ -228,6 +227,13 @@ mv ${TILES_DIR}/1 ${CUR_PLANET_DIR}/1
catch_exception
mv ${TILES_DIR}/2 ${CUR_PLANET_DIR}/2
catch_exception

#rm admin and tz after they have been included in the tar.
if [[ "$INCLUDE_EXTRAS" == "false" ]]; then
rm -f ${admin_file}
rm -f ${timezone_file}
fi

popd
catch_exception
popd
Expand Down

0 comments on commit 0e00a52

Please sign in to comment.