source: gs3-installations/intermuse/trunk/sites/intermuse/collect/RECONFIGURE-ALL-COLS.sh@ 37110

Last change on this file since 37110 was 36974, checked in by davidb, 18 months ago

Additional scripts to help with the building and management of collections in the IntermusE gs3-installation

  • Property svn:executable set to *
File size: 543 bytes
Line 
1#!/bin/bash
2
3cwd=`pwd`
4site_tail=${cwd%*/*}
5site=${site_tail##*/}
6
7echo "Full reconfiguration of site:"
8echo " $site"
9echo ""
10
11reconfig_url="http://localhost:$gs_http_port/$gs_context/library?a=s&sa=c"
12#reconfig_url="http://localhost:$gs_http_port/$gs_context/$site-library?a=s&sa=c"
13
14
15echo "Running:"
16echo " wget -O /dev/null \"$reconfig_url\""
17
18wget -O /dev/null "$reconfig_url" >/dev/null 2>&1
19
20status=$?
21
22if [ $status != 0 ] ; then
23 echo "Error encountered when requesting Greenstone3 reconfiguration" 1>&2
24else
25 echo "Done"
26fi
27
28
Note: See TracBrowser for help on using the repository browser.