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