From e3c2e8024be6110b41f9ee6ee89c651e9b3c12e3 Mon Sep 17 00:00:00 2001 From: sysadmin Date: Mon, 10 Aug 2026 23:57:35 -0400 Subject: [PATCH] Actualizar pgtilesrv_config.sh --- pgtilesrv_config.sh | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/pgtilesrv_config.sh b/pgtilesrv_config.sh index c7864d6..bb21ab2 100644 --- a/pgtilesrv_config.sh +++ b/pgtilesrv_config.sh @@ -3,6 +3,9 @@ eval MIDOMINIO=$(docker exec arches_db printenv DOMAINS) eval MIPROY=$(docker exec arches_db printenv COMPOSE_PROJECT_NAME) -MISQL="INSERT INTO map_sources (name, source) VALUES ('ponderacion-pg-tilesrv', '{\"type\": \"vector\", \"tiles\": [\"https://$MIDOMINIO/pgtileserv/public.ponderacion/{z}/{x}/{y}.pbf\"], \"tileSize\": 512}') ON CONFLICT DO NOTHING RETURNING *;" +MISQL="INSERT INTO map_sources (name, source) +VALUES ('ponderacion-pg-tilesrv', '{\"type\": \"vector\", \"tiles\": [\"https://$MIDOMINIO/pgtileserv/public.ponderacion/{z}/{x}/{y}.pbf\"], \"tileSize\": 512}') +ON CONFLICT (name) +DO UPDATE SET source = EXCLUDED.source;" docker exec arches_db psql -U postgres -d $MIPROY -c "$MISQL" \ No newline at end of file