Last change
on this file since 34460 was 34077, checked in by davidb, 4 years ago |
Neated version of script, renamed, and moved to be in the collect dir
|
-
Property svn:executable
set to
*
|
File size:
459 bytes
|
Line | |
---|
1 | #!/bin/bash
|
---|
2 |
|
---|
3 | cwd=`pwd`
|
---|
4 | site_tail=${cwd%*/*/*}
|
---|
5 | site=${site_tail##*/}
|
---|
6 |
|
---|
7 | echo "Full reconfiguration of site:"
|
---|
8 | echo " $site"
|
---|
9 | echo ""
|
---|
10 |
|
---|
11 |
|
---|
12 | reconfig_url="http://localhost:8383/greenstone3/$site-library?a=s&sa=c"
|
---|
13 | echo "Running:"
|
---|
14 | echo " wget -O /dev/null \"$reconfig_url\""
|
---|
15 |
|
---|
16 | wget -O /dev/null "$reconfig_url" >/dev/null 2>&1
|
---|
17 |
|
---|
18 | status=$?
|
---|
19 |
|
---|
20 | if [ $status != 0 ] ; then
|
---|
21 | echo "Error encountered when requesting Greenstone3 reconfiguration" 1>&2
|
---|
22 | else
|
---|
23 | echo "Done"
|
---|
24 | fi
|
---|
25 |
|
---|
26 |
|
---|
Note:
See
TracBrowser
for help on using the repository browser.