[Dive4elements-commits] [PATCH] Fix hard coded mapserver url

Wald Commits scm-commit at wald.intevation.org
Wed Nov 14 11:20:10 CET 2012


# HG changeset patch
# User Sascha L. Teichmann <teichmann at intevation.de>
# Date 1352888406 -3600
# Node ID 334c68344eb5124be529d5668e7bef45096ca894
# Parent  b15f82f0d652f96b677d29b7e2cd979e4325b77c
Fix hard coded mapserver url

diff -r b15f82f0d652 -r 334c68344eb5 contrib/make_flys_release/make_release.sh
--- a/contrib/make_flys_release/make_release.sh	Wed Nov 14 11:01:51 2012 +0100
+++ b/contrib/make_flys_release/make_release.sh	Wed Nov 14 11:20:06 2012 +0100
@@ -17,6 +17,8 @@
 ARTEFACT_PORT=${ARTEFACT_PORT:-9002}
 TOMCAT_PORT=${TOMCAT_PORT:-8005}
 
+MAPSERVER_URL=${MAPSERVER_URL:-czech-republic.intevation.de}
+
 echo "INFO: create server directories"
 mkdir -p $DIRECTORY/server/bin/lib/own
 mkdir $DIRECTORY/server/shapefiles
@@ -100,7 +102,7 @@
     confs/rest-server.xml \
     > $DIRECTORY/server/conf/rest-server.xml
 
-sed "s at http://czech-republic.intevation.de/@http://flys-devel.intevation.de/@g" \
+sed "s at http://czech-republic.intevation.de/@http://${MAPSERVER_URL}/@g" \
     "s at flys-default@flys-$RELEASE at g" \
     confs/floodmap.xml \
     > $DIRECTORY/server/conf/floodmap.xml


More information about the Dive4elements-commits mailing list