From 871ede9bd56309de68d89d42b02a2123320c0c8b Mon Sep 17 00:00:00 2001 From: MaelReboux Date: Thu, 9 May 2019 10:58:02 +0200 Subject: [PATCH] Update synchronize_routing_tables.sh --- scripts/synchronize_routing_tables.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/scripts/synchronize_routing_tables.sh b/scripts/synchronize_routing_tables.sh index 9268bcc..4109e5a 100755 --- a/scripts/synchronize_routing_tables.sh +++ b/scripts/synchronize_routing_tables.sh @@ -22,12 +22,12 @@ rm osm_roads_pgr.zip zip osm_roads_pgr.zip osm_roads_pgr.sql osm_roads_pgr_noded.sql osm_roads_pgr_vertices_pgr.sql # on envoi sur le serveur -#rsync -av --progress osm_roads_pgr.zip breizhpovh2:/data/www/vhosts/ar-redadeg_openstreetmap_bzh/htdocs/scripts/data/ +rsync -av --progress osm_roads_pgr.zip breizhpovh2:/data/www/vhosts/ar-redadeg_openstreetmap_bzh/htdocs/scripts/data/ # on envoie des commande pour maj les tables de routage ssh breizhpovh2 "cd /data/www/vhosts/ar-redadeg_openstreetmap_bzh/htdocs/scripts/data/ ; \ unzip osm_roads_pgr.zip ; \ -psql -U redadeg -d redadeg -c 'DROP TABLE IF EXISTS osm_roads_pgr; DROP TABLE IF EXISTS osm_roads_pgr_noded; DROP TABLE IF EXISTS osm_roads_pgr_vertices_pgr;' \ +psql -U redadeg -d redadeg -c 'DROP TABLE IF EXISTS osm_roads_pgr; DROP TABLE IF EXISTS osm_roads_pgr_noded; DROP TABLE IF EXISTS osm_roads_pgr_vertices_pgr;' ; \ psql -U redadeg -d redadeg < osm_roads_pgr.sql ; \ psql -U redadeg -d redadeg < osm_roads_pgr_noded.sql ; \ psql -U redadeg -d redadeg < osm_roads_pgr_vertices_pgr.sql ;\