Skip to content

Commit f4be954

Browse files
committed
Merge branch 'tiler_config' into overpass_api
2 parents 4b5ffc4 + b9edf5c commit f4be954

File tree

1 file changed

+10
-5
lines changed

1 file changed

+10
-5
lines changed

images/tiler-imposm/start.sh

Lines changed: 10 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -168,11 +168,16 @@ while "$flag" = true; do
168168
echo "Update the DB with osm data"
169169
updateData
170170
else
171-
echo "Import PBF data to DB"
172-
getData
173-
if [ -f $PBFFile ]; then
174-
echo "Start importing the data"
175-
importData
171+
if [[ ! -f /mnt/data/init_done ]]; then
172+
echo "Import PBF data to DB"
173+
getData
174+
if [ -f $PBFFile ]; then
175+
echo "Start importing the data"
176+
importData \
177+
&& touch /mnt/data/init_done
178+
fi
179+
else
180+
echo "Data has already imported"
176181
fi
177182
fi
178183
done

0 commit comments

Comments
 (0)