File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -93,7 +93,7 @@ function updateData(){
93
93
else
94
94
# OverWrite the last.state.txt file with REPLICATION_URL and sequenceNumber=0
95
95
echo " timestamp=0001-01-01T00\:00\:00Z
96
- sequenceNumber=0
96
+ sequenceNumber=$SEQUENCE_NUMBER
97
97
replicationUrl=$REPLICATION_URL " > $diffdir /last.state.txt
98
98
fi
99
99
@@ -164,7 +164,7 @@ while "$flag" = true; do
164
164
-c " SELECT count(*) FROM information_schema.tables WHERE table_schema = 'public'" | sed -n 3p | sed ' s/ //g' )
165
165
# After import there are more than 70 tables
166
166
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
168
168
echo " Update the DB with osm data"
169
169
updateData
170
170
else
You can’t perform that action at this time.
0 commit comments