source: main/trunk/model-sites-dev/atea/collect/global-digital-heritage/RECONFIGURE.sh@ 34071

Last change on this file since 34071 was 34071, checked in by davidb, 4 years ago

Script changed to work out the site-name from the pwd (in addiition to col name)

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