source: main/trunk/model-sites-dev/atea/collect/RECONFIGURE-ALL-COLS.sh@ 34453

Last change on this file since 34453 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
3cwd=`pwd`
4site_tail=${cwd%*/*/*}
5site=${site_tail##*/}
6
7echo "Full reconfiguration of site:"
8echo " $site"
9echo ""
10
11
12reconfig_url="http://localhost:8383/greenstone3/$site-library?a=s&sa=c"
13echo "Running:"
14echo " wget -O /dev/null \"$reconfig_url\""
15
16wget -O /dev/null "$reconfig_url" >/dev/null 2>&1
17
18status=$?
19
20if [ $status != 0 ] ; then
21 echo "Error encountered when requesting Greenstone3 reconfiguration" 1>&2
22else
23 echo "Done"
24fi
25
26
Note: See TracBrowser for help on using the repository browser.