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

Commit 841abd7

Browse files
authored
Merge pull request #26 from valhalla/cut_tiles
cut_tiles update
2 parents 2b8b762 + 0e00a52 commit 841abd7

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

scripts/cut_tiles.sh

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -196,8 +196,6 @@ if [[ "$INCLUDE_EXTRAS" == "true" ]]; then
196196
cp_stamp ${DATA_DIR}/$(basename ${admin_file}) ${stamp}
197197
cp_stamp ${DATA_DIR}/$(basename ${timezone_file}) ${stamp}
198198
else
199-
rm -f ${admin_file}
200-
rm -f ${timezone_file}
201199
rm -f maproulette_tasks.geojson
202200
fi
203201

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

@@ -228,6 +227,13 @@ mv ${TILES_DIR}/1 ${CUR_PLANET_DIR}/1
228227
catch_exception
229228
mv ${TILES_DIR}/2 ${CUR_PLANET_DIR}/2
230229
catch_exception
230+
231+
#rm admin and tz after they have been included in the tar.
232+
if [[ "$INCLUDE_EXTRAS" == "false" ]]; then
233+
rm -f ${admin_file}
234+
rm -f ${timezone_file}
235+
fi
236+
231237
popd
232238
catch_exception
233239
popd

0 commit comments

Comments
 (0)