Mercurial > dive4elements > framework
annotate artifact-database/bin/createArtifacts.sh @ 566:2a6524b36ab6 3.2.x
Update repository URL
According to https://restlet.talend.com/downloads/current/, the
"Maven repository for Restlet is accessible from
https://maven.restlet.talend.com". The previously used URL currently
uses an outdated SSL certificate.
author | Tom Gottfried <tom@intevation.de> |
---|---|
date | Mon, 22 Mar 2021 12:20:54 +0100 |
parents | 8bf00b8266fe |
children | 2b40f4bf190d |
rev | line source |
---|---|
538
8bf00b8266fe
Add script for creation of h2-database and remove concurrent config.
Tom Gottfried <tom@intevation.de>
parents:
diff
changeset
|
1 #!/bin/bash |
8bf00b8266fe
Add script for creation of h2-database and remove concurrent config.
Tom Gottfried <tom@intevation.de>
parents:
diff
changeset
|
2 |
8bf00b8266fe
Add script for creation of h2-database and remove concurrent config.
Tom Gottfried <tom@intevation.de>
parents:
diff
changeset
|
3 mkdir -p artifactsdb |
8bf00b8266fe
Add script for creation of h2-database and remove concurrent config.
Tom Gottfried <tom@intevation.de>
parents:
diff
changeset
|
4 |
8bf00b8266fe
Add script for creation of h2-database and remove concurrent config.
Tom Gottfried <tom@intevation.de>
parents:
diff
changeset
|
5 DIR=`dirname $0` |
8bf00b8266fe
Add script for creation of h2-database and remove concurrent config.
Tom Gottfried <tom@intevation.de>
parents:
diff
changeset
|
6 DIR=`readlink -f "$DIR"` |
8bf00b8266fe
Add script for creation of h2-database and remove concurrent config.
Tom Gottfried <tom@intevation.de>
parents:
diff
changeset
|
7 |
8bf00b8266fe
Add script for creation of h2-database and remove concurrent config.
Tom Gottfried <tom@intevation.de>
parents:
diff
changeset
|
8 if [ $# != 1 ]; then |
8bf00b8266fe
Add script for creation of h2-database and remove concurrent config.
Tom Gottfried <tom@intevation.de>
parents:
diff
changeset
|
9 SCHEMA="$DIR/../doc/schema-h2.sql" |
8bf00b8266fe
Add script for creation of h2-database and remove concurrent config.
Tom Gottfried <tom@intevation.de>
parents:
diff
changeset
|
10 else |
8bf00b8266fe
Add script for creation of h2-database and remove concurrent config.
Tom Gottfried <tom@intevation.de>
parents:
diff
changeset
|
11 SCHEMA="$1" |
8bf00b8266fe
Add script for creation of h2-database and remove concurrent config.
Tom Gottfried <tom@intevation.de>
parents:
diff
changeset
|
12 fi |
8bf00b8266fe
Add script for creation of h2-database and remove concurrent config.
Tom Gottfried <tom@intevation.de>
parents:
diff
changeset
|
13 |
8bf00b8266fe
Add script for creation of h2-database and remove concurrent config.
Tom Gottfried <tom@intevation.de>
parents:
diff
changeset
|
14 URL="jdbc:h2:`readlink -f artifactsdb`/artifacts" |
8bf00b8266fe
Add script for creation of h2-database and remove concurrent config.
Tom Gottfried <tom@intevation.de>
parents:
diff
changeset
|
15 |
8bf00b8266fe
Add script for creation of h2-database and remove concurrent config.
Tom Gottfried <tom@intevation.de>
parents:
diff
changeset
|
16 mvn -e -Dexec.mainClass=org.h2.tools.RunScript exec:java \ |
8bf00b8266fe
Add script for creation of h2-database and remove concurrent config.
Tom Gottfried <tom@intevation.de>
parents:
diff
changeset
|
17 -Dexec.args="-url $URL -script $SCHEMA" |