Changeset 35858


Ignore:
Timestamp:
2022-01-03T14:39:46+13:00 (2 years ago)
Author:
davidb
Message:

Developed to be more portable across different installs, as long as the 'library' servlet name follows the convention of being the site name + '-library'

File:
1 edited

Legend:

Unmodified
Added
Removed
  • main/trunk/model-sites-dev/eurovision-lod/collect/eurovision/_local_collect_config.sh

    r35035 r35858  
    77site=${site_with_subdirs%%/*}
    88
    9 #library_url="http://localhost:8383/greenstone3/$site-library"
    10 library_url="http://localhost:8383/greenstone3/eurovision-library"
     9library_url="http://localhost:8383/greenstone3/$site-library"
     10
     11sparqlGraphBasePrefix=`fgrep FULL_GREENSTONE_URL_PREFIX transform/layouts/header.xsl | sed 's/<[^>]*>//g' | sed 's/\s\+//g'`
     12
     13if [ $? = 0 ] ; then
     14    export FULL_GREENSTONE_URL_PREFIX="$sparqlGraphBasePrefix/greenstone3/$site-library"
     15    echo "Setting environment variable:"
     16    echo "  FULL_GREENSTONE_URL_PREFIX=\"$FULL_GREENSTONE_URL_PREFIX\""
     17fi
Note: See TracChangeset for help on using the changeset viewer.