Skip to content

Commit 77595a9

Browse files
author
Ruben Lopez M
authored
Merge pull request #194 from developmentseed/init-exists
updateData if tables > 70 and IF init exists
2 parents e2a5961 + 64b32e9 commit 77595a9

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

images/tiler-imposm/start.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@ function updateData(){
9393
else
9494
# OverWrite the last.state.txt file with REPLICATION_URL and sequenceNumber=0
9595
echo "timestamp=0001-01-01T00\:00\:00Z
96-
sequenceNumber=0
96+
sequenceNumber=$SEQUENCE_NUMBER
9797
replicationUrl=$REPLICATION_URL" > $diffdir/last.state.txt
9898
fi
9999

@@ -164,7 +164,7 @@ while "$flag" = true; do
164164
-c "SELECT count(*) FROM information_schema.tables WHERE table_schema = 'public'" | sed -n 3p | sed 's/ //g')
165165
# After import there are more than 70 tables
166166
echo "$hasData tables in the DB"
167-
if ([ $hasData \> 70 ] && [[ ! -f /mnt/data/init_done ]]); then
167+
if ([ $hasData \> 70 ] && [[ -f /mnt/data/init_done ]]); then
168168
echo "Update the DB with osm data"
169169
updateData
170170
else

0 commit comments

Comments
 (0)