comparison artifact-database/bin/createArtifacts.sh @ 538:8bf00b8266fe 3.1.10

Add script for creation of h2-database and remove concurrent config.
author Tom Gottfried <tom@intevation.de>
date Wed, 17 Dec 2014 15:46:21 +0100
parents
children 2b40f4bf190d
comparison
equal deleted inserted replaced
537:a3397b6aab0a 538:8bf00b8266fe
1 #!/bin/bash
2
3 mkdir -p artifactsdb
4
5 DIR=`dirname $0`
6 DIR=`readlink -f "$DIR"`
7
8 if [ $# != 1 ]; then
9 SCHEMA="$DIR/../doc/schema-h2.sql"
10 else
11 SCHEMA="$1"
12 fi
13
14 URL="jdbc:h2:`readlink -f artifactsdb`/artifacts"
15
16 mvn -e -Dexec.mainClass=org.h2.tools.RunScript exec:java \
17 -Dexec.args="-url $URL -script $SCHEMA"

http://dive4elements.wald.intevation.org