Mercurial > dive4elements > river
comparison 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 |
comparison
equal
deleted
inserted
replaced
4493:b15f82f0d652 | 4494:334c68344eb5 |
---|---|
14 RELEASE_DATE=`date +'%Y-%m-%d'` | 14 RELEASE_DATE=`date +'%Y-%m-%d'` |
15 DIRECTORY=$PREFIX$RELEASE-$RELEASE_DATE | 15 DIRECTORY=$PREFIX$RELEASE-$RELEASE_DATE |
16 | 16 |
17 ARTEFACT_PORT=${ARTEFACT_PORT:-9002} | 17 ARTEFACT_PORT=${ARTEFACT_PORT:-9002} |
18 TOMCAT_PORT=${TOMCAT_PORT:-8005} | 18 TOMCAT_PORT=${TOMCAT_PORT:-8005} |
19 | |
20 MAPSERVER_URL=${MAPSERVER_URL:-czech-republic.intevation.de} | |
19 | 21 |
20 echo "INFO: create server directories" | 22 echo "INFO: create server directories" |
21 mkdir -p $DIRECTORY/server/bin/lib/own | 23 mkdir -p $DIRECTORY/server/bin/lib/own |
22 mkdir $DIRECTORY/server/shapefiles | 24 mkdir $DIRECTORY/server/shapefiles |
23 mkdir $DIRECTORY/client | 25 mkdir $DIRECTORY/client |
98 | 100 |
99 sed "s/8999/$ARTEFACT_PORT/g" \ | 101 sed "s/8999/$ARTEFACT_PORT/g" \ |
100 confs/rest-server.xml \ | 102 confs/rest-server.xml \ |
101 > $DIRECTORY/server/conf/rest-server.xml | 103 > $DIRECTORY/server/conf/rest-server.xml |
102 | 104 |
103 sed "s@http://czech-republic.intevation.de/@http://flys-devel.intevation.de/@g" \ | 105 sed "s@http://czech-republic.intevation.de/@http://${MAPSERVER_URL}/@g" \ |
104 "s@flys-default@flys-$RELEASE@g" \ | 106 "s@flys-default@flys-$RELEASE@g" \ |
105 confs/floodmap.xml \ | 107 confs/floodmap.xml \ |
106 > $DIRECTORY/server/conf/floodmap.xml | 108 > $DIRECTORY/server/conf/floodmap.xml |
107 | 109 |
108 sed "s@/tmp/flys-server-default.log@/tmp/flys-server-${RELEASE}.log" \ | 110 sed "s@/tmp/flys-server-default.log@/tmp/flys-server-${RELEASE}.log" \ |