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 |
|
---|
5 | store_cwd=$PWD
|
---|
6 | cd $GSDL3SRCHOME
|
---|
7 |
|
---|
8 | echo ""
|
---|
9 |
|
---|
10 | if [ ! -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
|
---|
16 | fi
|
---|
17 |
|
---|
18 | echo "****"
|
---|
19 | echo "* Restarting/Starting Greenstone3 server to pick up on tomcat webapp's fuseki3.war"
|
---|
20 | echo "****"
|
---|
21 | echo ""
|
---|
22 |
|
---|
23 | ./ant-restart-with-exts.sh
|
---|
24 |
|
---|
25 |
|
---|
26 |
|
---|
27 | echo ""
|
---|
28 | echo "****"
|
---|
29 | echo "* Testing to see if /greenstone dataset exists already (ping)"
|
---|
30 | echo "****"
|
---|
31 | echo ""
|
---|
32 |
|
---|
33 | gs-triplestore-dataset-ping3 /greenstone
|
---|
34 |
|
---|
35 | if [ $? != 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 |
|
---|
53 | fi
|
---|
54 |
|
---|
55 | cd "$store_cwd"
|
---|
56 |
|
---|
Note:
See
TracBrowser
for help on using the repository browser.