Ignore:
Timestamp:
2020-03-14T23:20:48+13:00 (4 years ago)
Author:
davidb
Message:

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

Location:
main/trunk/model-sites-dev/atea/collect/global-digital-heritage
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • main/trunk/model-sites-dev/atea/collect/global-digital-heritage/ACTIVATE.sh

    r34023 r34071  
    44col=${cwd##*/}
    55
    6 activate.pl -removeold -site atea -library_url http://localhost:8383/greenstone3/atea-library $* "$col"
     6site_tail=${cwd%*/*/*}
     7site=${site_tail##*/}
    78
     9activate.pl -removeold -site "$site" -library_url http://localhost:8383/greenstone3/$site-library $* "$col"
     10
  • main/trunk/model-sites-dev/atea/collect/global-digital-heritage/BUILDCOL.sh

    r34023 r34071  
    44col=${cwd##*/}
    55
    6 buildcol.pl -removeold -site atea $* "$col"
     6site_tail=${cwd%*/*/*}
     7site=${site_tail##*/}
    78
     9buildcol.pl -removeold -site "$site" $* "$col"
     10
  • main/trunk/model-sites-dev/atea/collect/global-digital-heritage/IMPORT.sh

    r34023 r34071  
    44col=${cwd##*/}
    55
    6 import.pl -removeold -site atea $* "$col"
     6site_tail=${cwd%*/*/*}
     7site=${site_tail##*/}
    78
     9import.pl -removeold -site "$site" -OIDtype assigned -OIDmetadata gdh.Identifier $* "$col"
     10
  • main/trunk/model-sites-dev/atea/collect/global-digital-heritage/RECONFIGURE.sh

    r34023 r34071  
    11#!/bin/bash
    22
    3 echo "Reconfiguring full site"
     3echo "Full reconfiguration of site:"
     4echo "  atea"
     5echo ""
    46
    5 wget -O /dev/null 'http://localhost:8383/greenstone3/atea-library?a=s&sa=c'
     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
    615
    716status=$?
    817
    918if [ $status != 0 ] ; then
    10   echo "Error encountered when requesting Greenstone3 reconfiguration" 1>&2
     19    echo "Error encountered when requesting Greenstone3 reconfiguration" 1>&2
     20else
     21    echo "Done"
    1122fi
    1223
     24
Note: See TracChangeset for help on using the changeset viewer.