source: main/trunk/model-sites-dev/atea/collect/he-herenga-korero-pdfs/RECONFIGURE-COL.sh@ 34083

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

upgraded and renamed

  • Property svn:executable set to *
File size: 492 bytes
Line 
1#!/bin/bash
2
3cwd=`pwd`
4col=${cwd##*/}
5
6site_tail=${cwd%*/*/*}
7site=${site_tail##*/}
8
9echo "Full reconfiguration of site/col:"
10echo " $site/$col"
11echo ""
12
13
14reconfig_url="http://localhost:8383/greenstone3/$site-library?a=s&sa=c&sc=$col"
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.