source: gs2-extensions/apache-jena/trunk/src/src3/gs-triplestore-server3@ 36764

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
3pushd "$GEXT_JENA"
4
5#
6export JENA_HOME=$GEXT_JENA/packages/apache-jena-3.17.0
7export FUSEKI_HOME=$GEXT_JENA/packages/apache-jena-fuseki-3.17.0
8
9export JENA_FUSEKI_JAR=$GEXT_JENA/packages/apache-jena-fuseki-3.17.0/fuseki-server.jar
10
11port=${FUSEKI3_PORT:-4040}
12
13if [ ! -d run ] ; then
14 echo "Creating directory:"
15 echo " run"
16 mkdir run
17fi
18
19echo "Copying src3/run--shiro.ini -> run/shiro.ini"
20/bin/cp src3/run--shiro.ini run/.
21
22echo "Copying src3/run-templates--config-tdb-dir run/templates/config-tdb-dir"
23if [ ! -d run/templates ] ; then
24 mkdir run/templates
25fi
26/bin/cp src3/run-templates--config-tdb-dir run/templates/config-tdb-dir
27
28if [ ! -d etc/tdb-triple-store3 ] ; then
29 echo "Creating directory: "
30 echo " etc/tdb-triple-store3"
31 mkdir etc/tdb-triple-store3
32fi
33
34./bin/script3/fuseki-server --tdb etc/tdb-triple-store3 --update --port $port /greenstone
35
36
37popd
Note: See TracBrowser for help on using the repository browser.