source: main/trunk/model-sites-dev/eurovision-lod/collect/eurovision/RECONFIGURE-COL.sh@ 34976

Last change on this file since 34976 was 34706, checked in by davidb, 3 years ago

Update on library servlet to specify

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