diff contrib/make_flys_release/make_release.sh @ 4494:334c68344eb5

Fix hard coded mapserver url
author Sascha L. Teichmann <teichmann@intevation.de>
date Wed, 14 Nov 2012 11:20:06 +0100
parents b15f82f0d652
children f91260ccef03
line wrap: on
line diff
--- 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@http://czech-republic.intevation.de/@http://flys-devel.intevation.de/@g" \
+sed "s@http://czech-republic.intevation.de/@http://${MAPSERVER_URL}/@g" \
     "s@flys-default@flys-$RELEASE@g" \
     confs/floodmap.xml \
     > $DIRECTORY/server/conf/floodmap.xml

http://dive4elements.wald.intevation.org