Mercurial > dive4elements > river
comparison contrib/make_flys_release/make_release.sh @ 4889:8118f9b0ee7b
Fixed config files.
* backend-db: fixed connection string.
* make-release: Fixed mapserver url and added sed command to replace mapserver
url in rivermap.xml
author | Raimund Renkert <rrenkert@intevation.de> |
---|---|
date | Mon, 28 Jan 2013 16:33:05 +0100 |
parents | 83a42e6a562d |
children | 15ff9ddc765e |
comparison
equal
deleted
inserted
replaced
4888:3f0c8ef42b7a | 4889:8118f9b0ee7b |
---|---|
15 DIRECTORY=$PREFIX$RELEASE-$RELEASE_DATE | 15 DIRECTORY=$PREFIX$RELEASE-$RELEASE_DATE |
16 | 16 |
17 ARTIFACT_PORT=${ARTIFACT_PORT:-9002} | 17 ARTIFACT_PORT=${ARTIFACT_PORT:-9002} |
18 TOMCAT_PORT=${TOMCAT_PORT:-8005} | 18 TOMCAT_PORT=${TOMCAT_PORT:-8005} |
19 | 19 |
20 MAPSERVER_URL=${MAPSERVER_URL:-czech-republic.intevation.de} | 20 MAPSERVER_URL=${MAPSERVER_URL:-czech-republic.atlas.intevation.de} |
21 | 21 |
22 echo "INFO: create server directories" | 22 echo "INFO: create server directories" |
23 mkdir -p $DIRECTORY/server/bin/lib/own | 23 mkdir -p $DIRECTORY/server/bin/lib/own |
24 mkdir $DIRECTORY/server/shapefiles | 24 mkdir $DIRECTORY/server/shapefiles |
25 mkdir $DIRECTORY/client | 25 mkdir $DIRECTORY/client |
100 | 100 |
101 sed "s/8999/$ARTIFACT_PORT/g" \ | 101 sed "s/8999/$ARTIFACT_PORT/g" \ |
102 confs/rest-server.xml \ | 102 confs/rest-server.xml \ |
103 > $DIRECTORY/server/conf/rest-server.xml | 103 > $DIRECTORY/server/conf/rest-server.xml |
104 | 104 |
105 sed -e "s@http://czech-republic.intevation.de/@http://${MAPSERVER_URL}/@g" \ | 105 sed -e "s@http://example.com/@http://${MAPSERVER_URL}/@g" \ |
106 -e "s@flys-default@flys-${RELEASE}@g" \ | |
107 confs/floodmap.xml \ | 106 confs/floodmap.xml \ |
108 > $DIRECTORY/server/conf/floodmap.xml | 107 > $DIRECTORY/server/conf/floodmap.xml |
108 | |
109 sed -e "s@http://example.com/@http://${MAPSERVER_URL}/@g" \ | |
110 confs/rivermap.xml \ | |
111 > $DIRECTORY/server/conf/rivermap.xml | |
112 | |
109 | 113 |
110 sed "s@/tmp/flys-server-default.log@/tmp/flys-server-${RELEASE}.log" \ | 114 sed "s@/tmp/flys-server-default.log@/tmp/flys-server-${RELEASE}.log" \ |
111 confs/log4j.properties \ | 115 confs/log4j.properties \ |
112 > $DIRECTORY/server/conf/log4j.properties | 116 > $DIRECTORY/server/conf/log4j.properties |
113 | 117 |