From 22013bfee53bf2aabb489d1a1bfcc226cbd0a83a Mon Sep 17 00:00:00 2001 From: Riccardo Boero <ribo@nilu.no> Date: Tue, 2 Jan 2024 11:31:26 +0100 Subject: [PATCH] Added waiting for first generation of layer in DB. --- inputs/load_vector_data.sh | 1 + 1 file changed, 1 insertion(+) diff --git a/inputs/load_vector_data.sh b/inputs/load_vector_data.sh index 96d085c..9151fca 100755 --- a/inputs/load_vector_data.sh +++ b/inputs/load_vector_data.sh @@ -36,6 +36,7 @@ for file in "$dir"/*; do if [ $counter -eq 0 ]; then # Process the first file ogr2ogr -f MySQL MySQL:"$DB_NAME,host=$DB_HOST,user=$DB_USER,password=$DB_PASS" "$file" -nln footprints -update -overwrite -lco engine=Aria & + wait else # Process other files in parallel ogr2ogr -f MySQL MySQL:"$DB_NAME,host=$DB_HOST,user=$DB_USER,password=$DB_PASS" "$file" -nln footprints -update -append & -- GitLab