Last change
on this file since 36764 was 36764, checked in by davidb, 19 months ago |
FUSEKI3_PORT introduced as an environment variable that can be used to control the port the server runs on (defaults to 4040)
|
-
Property svn:executable
set to
*
|
File size:
903 bytes
|
Line | |
---|
1 | #!/bin/bash
|
---|
2 |
|
---|
3 | pushd "$GEXT_JENA"
|
---|
4 |
|
---|
5 | #
|
---|
6 | export JENA_HOME=$GEXT_JENA/packages/apache-jena-3.17.0
|
---|
7 | export FUSEKI_HOME=$GEXT_JENA/packages/apache-jena-fuseki-3.17.0
|
---|
8 |
|
---|
9 | export JENA_FUSEKI_JAR=$GEXT_JENA/packages/apache-jena-fuseki-3.17.0/fuseki-server.jar
|
---|
10 |
|
---|
11 | port=${FUSEKI3_PORT:-4040}
|
---|
12 |
|
---|
13 | if [ ! -d run ] ; then
|
---|
14 | echo "Creating directory:"
|
---|
15 | echo " run"
|
---|
16 | mkdir run
|
---|
17 | fi
|
---|
18 |
|
---|
19 | echo "Copying src3/run--shiro.ini -> run/shiro.ini"
|
---|
20 | /bin/cp src3/run--shiro.ini run/.
|
---|
21 |
|
---|
22 | echo "Copying src3/run-templates--config-tdb-dir run/templates/config-tdb-dir"
|
---|
23 | if [ ! -d run/templates ] ; then
|
---|
24 | mkdir run/templates
|
---|
25 | fi
|
---|
26 | /bin/cp src3/run-templates--config-tdb-dir run/templates/config-tdb-dir
|
---|
27 |
|
---|
28 | if [ ! -d etc/tdb-triple-store3 ] ; then
|
---|
29 | echo "Creating directory: "
|
---|
30 | echo " etc/tdb-triple-store3"
|
---|
31 | mkdir etc/tdb-triple-store3
|
---|
32 | fi
|
---|
33 |
|
---|
34 | ./bin/script3/fuseki-server --tdb etc/tdb-triple-store3 --update --port $port /greenstone
|
---|
35 |
|
---|
36 |
|
---|
37 | popd
|
---|
Note:
See
TracBrowser
for help on using the repository browser.