source: main/trunk/model-sites-dev/mars/collect/deam/RECONFIG-COL.sh@ 34397

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

Scripts to simplify rebuilding *this* collection

File size: 510 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
14# sets variable $library_url
15source ./_library_url.sh
16reconfig_url="$library_url?a=s&sa=c&sc=$col"
17
18echo "Running:"
19echo " wget -O /dev/null \"$reconfig_url\""
20
21wget -O /dev/null "$reconfig_url" >/dev/null 2>&1
22
23status=$?
24
25if [ $status != 0 ] ; then
26 echo "Error encountered when requesting Greenstone3 reconfiguration" 1>&2
27else
28 echo "Done"
29fi
Note: See TracBrowser for help on using the repository browser.