Last change
on this file since 35058 was 35058, checked in by davidb, 3 years ago |
Check for FULL_GREENSTONE_URL_PREFIX and use this if it exists for the graph URI
|
-
Property svn:executable
set to
*
|
File size:
652 bytes
|
Rev | Line | |
---|
[34963] | 1 | #!/bin/bash
|
---|
| 2 |
|
---|
| 3 | if [ $# -ne 1 ] ; then
|
---|
| 4 | echo "Usage: $0 collect-name" >&2
|
---|
| 5 | exit 1
|
---|
| 6 | fi
|
---|
| 7 |
|
---|
| 8 | graph_name=$1
|
---|
| 9 |
|
---|
[35058] | 10 | if [ "x$FULL_GREENSTONE_URL_PREFIX" != "x" ] ; then
|
---|
| 11 | graph_uri="$FULL_GREENSTONE_URL_PREFIX/collection/$graph_name"
|
---|
| 12 | else
|
---|
| 13 | graph_uri="http://localhost:4040/greenstone/data/$graph_name"
|
---|
| 14 | # graph_uri="https://so-we-must-think.space/greenstone3-lod3/greenstone/data/$graph_name"
|
---|
| 15 | fi
|
---|
| 16 |
|
---|
[34963] | 17 | # The following line helps with runing a she-bang line of:
|
---|
| 18 | # '#!/usr/bin/env ruby'
|
---|
| 19 | # when the current script has been run from Perl under Cygwin
|
---|
| 20 | #
|
---|
| 21 | export PATH=/usr/bin:$PATH
|
---|
| 22 |
|
---|
[35058] | 23 | s-update --service http://localhost:4040/greenstone/update "DROP GRAPH <$graph_uri>"
|
---|
[34963] | 24 |
|
---|
Note:
See
TracBrowser
for help on using the repository browser.