comparison contrib/make_flys_release/make_release.sh @ 5268:df7028d0cb93

Add LOG_DIR to make release to configure a logging directory. And configure this directory also in the mapfile templates. Default: /var/log/flys
author Andre Heinecke <aheinecke@intevation.de>
date Wed, 13 Mar 2013 11:23:08 +0100
parents f890d315240f
children a7778435a4af
comparison
equal deleted inserted replaced
5267:9245f4b434b3 5268:df7028d0cb93
77 BACKENDPORT=${BACKENDPORT:-5432} 77 BACKENDPORT=${BACKENDPORT:-5432}
78 BACKENDBACK=${BACKENDBACK:-flys_2912} 78 BACKENDBACK=${BACKENDBACK:-flys_2912}
79 BACKENDUSER=${BACKENDUSER:-flys_dami} 79 BACKENDUSER=${BACKENDUSER:-flys_dami}
80 BACKENDPASS=${BACKENDPASS:-flys_dami} 80 BACKENDPASS=${BACKENDPASS:-flys_dami}
81 INITSQLS=${INITSQLS:-} 81 INITSQLS=${INITSQLS:-}
82 LOG_DIR=/var/log/flys
82 83
83 OPTS=`getopt -o ?w:,t,o \ 84 OPTS=`getopt -o ?w:,t,o \
84 -l help,oracle \ 85 -l help,oracle \
85 -n $0 -- "$@"` 86 -n $0 -- "$@"`
86 87
171 echo "[INFO]: Artifact Port: $ARTIFACT_PORT" 172 echo "[INFO]: Artifact Port: $ARTIFACT_PORT"
172 sed -i -e "s@http://localhost:8181@http://localhost:$ARTIFACT_PORT@g" \ 173 sed -i -e "s@http://localhost:8181@http://localhost:$ARTIFACT_PORT@g" \
173 -e "s@http://localhost:8888@http://localhost:$TOMCAT_PORT@g" \ 174 -e "s@http://localhost:8888@http://localhost:$TOMCAT_PORT@g" \
174 $FLYS_SOURCE_DIR/flys/flys-client/src/main/webapp/WEB-INF/web.xml 175 $FLYS_SOURCE_DIR/flys/flys-client/src/main/webapp/WEB-INF/web.xml
175 176
176 sed -i -e "s@/tmp/flys-client.log@/var/log/flys/client-${VERSION}.log@g" \ 177 sed -i -e "s@/tmp/flys-client.log@${LOG_DIR}/client-${VERSION}.log@g" \
177 $FLYS_SOURCE_DIR/flys/flys-client/src/main/webapp/WEB-INF/log4j.properties 178 $FLYS_SOURCE_DIR/flys/flys-client/src/main/webapp/WEB-INF/log4j.properties
178 179
179 find $FLYS_SOURCE_DIR/flys/flys-artifacts/src/main/resources/ -name messages_\*.properties \ 180 find $FLYS_SOURCE_DIR/flys/flys-artifacts/src/main/resources/ -name messages_\*.properties \
180 -exec sed -i "s@https://flys-intern.intevation.de/Flys-3.0@"'${WIKI_URL}'"@g" {} \; 181 -exec sed -i "s@https://flys-intern.intevation.de/Flys-3.0@"'${WIKI_URL}'"@g" {} \;
181 182
236 $WORK_DIR/server/conf/floodmap.xml 237 $WORK_DIR/server/conf/floodmap.xml
237 238
238 sed -i -e "s@http://example.com/@http://${MAPSERVER_URL}/@g" \ 239 sed -i -e "s@http://example.com/@http://${MAPSERVER_URL}/@g" \
239 $WORK_DIR/server/conf/rivermap.xml 240 $WORK_DIR/server/conf/rivermap.xml
240 241
241 sed "s@/tmp/flys-server-default.log@/var/log/flys/server-${VERSION}.log@" \ 242 sed -i -e "s@/tmp/flys-rivers-wms.log/@${LOG_DIR}/rivers-wms-${VERSION}.log@g" \
243 $WORK_DIR/server/conf/mapserver/river-mapfile.vm
244
245 sed -i -e "s@/tmp/flys-user-wms.log/@${LOG_DIR}/user-wms-${VERSION}.log@g" \
246 $WORK_DIR/server/conf/mapserver/mapfile.vm
247
248 sed "s@/tmp/flys-server-default.log@${LOG_DIR}/server-${VERSION}.log@" \
242 $SCRIPT_DIR/confs/log4j.properties \ 249 $SCRIPT_DIR/confs/log4j.properties \
243 > $WORK_DIR/server/conf/log4j.properties 250 > $WORK_DIR/server/conf/log4j.properties
244 251
245 cat > $WORK_DIR/server/conf/seddb-db.xml << EOF 252 cat > $WORK_DIR/server/conf/seddb-db.xml << EOF
246 <?xml version="1.0" encoding="UTF-8" ?> 253 <?xml version="1.0" encoding="UTF-8" ?>

http://dive4elements.wald.intevation.org