comparison contrib/make_flys_release/make_release.sh @ 5602:a586153a277a

Add DGM_PATH variable
author Andre Heinecke <aheinecke@intevation.de>
date Mon, 08 Apr 2013 17:14:57 +0200
parents 7f8d6b49afad
children 17c956be4692
comparison
equal deleted inserted replaced
5601:8f28535455eb 5602:a586153a277a
84 BACKENDPORT=${BACKENDPORT:-5432} 84 BACKENDPORT=${BACKENDPORT:-5432}
85 BACKENDBACK=${BACKENDBACK:-flys_devel} 85 BACKENDBACK=${BACKENDBACK:-flys_devel}
86 BACKENDUSER=${BACKENDUSER:-flys_dami} 86 BACKENDUSER=${BACKENDUSER:-flys_dami}
87 BACKENDPASS=${BACKENDPASS:-flys_dami} 87 BACKENDPASS=${BACKENDPASS:-flys_dami}
88 INITSQLS=${INITSQLS:-} 88 INITSQLS=${INITSQLS:-}
89 DGM_PATH=${DGM_PATH:-/opt/flys/gewaesser}
89 LOG_DIR=/var/log/flys 90 LOG_DIR=/var/log/flys
90 91
91 OPTS=`getopt -o ?w:,t,o \ 92 OPTS=`getopt -o ?w:,t,o \
92 -l help,oracle \ 93 -l help,oracle \
93 -n $0 -- "$@"` 94 -n $0 -- "$@"`
279 $WORK_DIR/server/conf/mapserver/mapfile.vm 280 $WORK_DIR/server/conf/mapserver/mapfile.vm
280 281
281 sed "s@/tmp/flys-server-default.log@${LOG_DIR}/server-${VERSION}.log@" \ 282 sed "s@/tmp/flys-server-default.log@${LOG_DIR}/server-${VERSION}.log@" \
282 $SCRIPT_DIR/confs/log4j.properties \ 283 $SCRIPT_DIR/confs/log4j.properties \
283 > $WORK_DIR/server/conf/log4j.properties 284 > $WORK_DIR/server/conf/log4j.properties
285
286 sed -i -e "s@<dgm-path>/path/to/rivers/</dgm-path>@<dgm-path>${DGM_PATH}</dgm-path>@g" \
287 $WORK_DIR/server/conf/conf.xml
284 288
285 cat > $WORK_DIR/server/conf/seddb-db.xml << EOF 289 cat > $WORK_DIR/server/conf/seddb-db.xml << EOF
286 <?xml version="1.0" encoding="UTF-8" ?> 290 <?xml version="1.0" encoding="UTF-8" ?>
287 <seddb-database> 291 <seddb-database>
288 <!-- This is the default SedDB db configuration. --> 292 <!-- This is the default SedDB db configuration. -->

http://dive4elements.wald.intevation.org