We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 4b5ffc4 + b9edf5c commit f4be954Copy full SHA for f4be954
images/tiler-imposm/start.sh
@@ -168,11 +168,16 @@ while "$flag" = true; do
168
echo "Update the DB with osm data"
169
updateData
170
else
171
- echo "Import PBF data to DB"
172
- getData
173
- if [ -f $PBFFile ]; then
174
- echo "Start importing the data"
175
- importData
+ if [[ ! -f /mnt/data/init_done ]]; then
+ echo "Import PBF data to DB"
+ getData
+ if [ -f $PBFFile ]; then
+ echo "Start importing the data"
176
+ importData \
177
+ && touch /mnt/data/init_done
178
+ fi
179
+ else
180
+ echo "Data has already imported"
181
fi
182
183
done
0 commit comments