source: gs2-extensions/apache-jena/trunk/src/CREATE-GREENSTONE-DATASET.sh@ 38206

Last change on this file since 38206 was 38206, checked in by davidb, 8 months ago

Added in sourcing ./devel.sh

  • Property svn:executable set to *
File size: 1.2 KB
Line 
1#!/bin/bash
2
3. ./devel.sh
4
5store_cwd=$PWD
6cd $GSDL3SRCHOME
7
8echo ""
9
10if [ ! -f packages/tomcat/webapps/fuseki3.war ]; then
11 echo "Failed to find:" >&2
12 echo " packages/tomcat/webapps/fuseki3.war" >&2
13 echo "Triplstore not currently available to Greenstone3. Exiting" >&2
14 cd "$store_cwd"
15 exit 1
16fi
17
18echo "****"
19echo "* Restarting/Starting Greenstone3 server to pick up on tomcat webapp's fuseki3.war"
20echo "****"
21echo ""
22
23./ant-restart-with-exts.sh
24
25
26
27echo ""
28echo "****"
29echo "* Testing to see if /greenstone dataset exists already (ping)"
30echo "****"
31echo ""
32
33gs-triplestore-dataset-ping3 /greenstone
34
35if [ $? != 0 ] ; then
36 # Did not find dataset
37 echo "" >&2
38 echo "Warning: Did not find Fuseki dataset /greenstone" >&2
39 echo "" >&2
40
41 echo -n "Do you want to create /greenstone? [y/n]: "
42 read create_dataset
43
44 if [ "x$create_dataset" != "x" ] ; then
45 if [ "$create_dataset" = "y" ] || [ "$create_dataset" = "Y" ] ; then
46 #echo "Run the following:"
47 #echo " " gs-triplestore-dataset-create3 /greenstone
48 echo "Creating the /greenstone dataset"
49 gs-triplestore-dataset-create3 /greenstone
50 fi
51 fi
52
53fi
54
55cd "$store_cwd"
56
Note: See TracBrowser for help on using the repository browser.