Mercurial > dive4elements > river
diff 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 |
line wrap: on
line diff
--- a/contrib/make_flys_release/make_release.sh Wed Mar 13 10:34:29 2013 +0100 +++ b/contrib/make_flys_release/make_release.sh Wed Mar 13 11:23:08 2013 +0100 @@ -79,6 +79,7 @@ BACKENDUSER=${BACKENDUSER:-flys_dami} BACKENDPASS=${BACKENDPASS:-flys_dami} INITSQLS=${INITSQLS:-} +LOG_DIR=/var/log/flys OPTS=`getopt -o ?w:,t,o \ -l help,oracle \ @@ -173,7 +174,7 @@ -e "s@http://localhost:8888@http://localhost:$TOMCAT_PORT@g" \ $FLYS_SOURCE_DIR/flys/flys-client/src/main/webapp/WEB-INF/web.xml -sed -i -e "s@/tmp/flys-client.log@/var/log/flys/client-${VERSION}.log@g" \ +sed -i -e "s@/tmp/flys-client.log@${LOG_DIR}/client-${VERSION}.log@g" \ $FLYS_SOURCE_DIR/flys/flys-client/src/main/webapp/WEB-INF/log4j.properties find $FLYS_SOURCE_DIR/flys/flys-artifacts/src/main/resources/ -name messages_\*.properties \ @@ -238,7 +239,13 @@ sed -i -e "s@http://example.com/@http://${MAPSERVER_URL}/@g" \ $WORK_DIR/server/conf/rivermap.xml -sed "s@/tmp/flys-server-default.log@/var/log/flys/server-${VERSION}.log@" \ +sed -i -e "s@/tmp/flys-rivers-wms.log/@${LOG_DIR}/rivers-wms-${VERSION}.log@g" \ + $WORK_DIR/server/conf/mapserver/river-mapfile.vm + +sed -i -e "s@/tmp/flys-user-wms.log/@${LOG_DIR}/user-wms-${VERSION}.log@g" \ + $WORK_DIR/server/conf/mapserver/mapfile.vm + +sed "s@/tmp/flys-server-default.log@${LOG_DIR}/server-${VERSION}.log@" \ $SCRIPT_DIR/confs/log4j.properties \ > $WORK_DIR/server/conf/log4j.properties