Changeset 38281 for gs3-installations


Ignore:
Timestamp:
2023-10-03T17:29:42+13:00 (9 months ago)
Author:
davidb
Message:

Changes after rebuild with streamlined fuseki3.war

Location:
gs3-installations/intermuse/trunk/sites/intermuse/collect/demo-localhost
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • gs3-installations/intermuse/trunk/sites/intermuse/collect/demo-localhost/BUILDCOL.sh

    r38240 r38281  
    22
    33source ../_local_collect_config.sh
     4
     5if [ "x$GSDL3SRCHOME" = "x" ] ; then
     6    pushd ../../../../../ && . ./SETUP.bash && popd
     7fi
    48
    59echo "***"
     
    1418echo "Obtaining lock: gs3-building.flock"
    1519
    16 #sudo -u $gs_server_username -- \
    17 bash -c "pushd ../../../../../ && . ./gs3-setup.sh && popd && flock gs3-building.flock buildcol.pl -removeold -site $site $col $*"
     20# This used to be done with "bash -c" but not sure why
     21# Perhaps 'flock' doesn't work with combined with nohup directly?
     22
     23if [ $gs_server_username != $USER ] ; then
     24    sudo -u $gs_server_username -- \
     25     flock gs3-building.flock buildcol.pl -removeold -site $site $col $*
     26else
     27    flock gs3-building.flock buildcol.pl -removeold -site $site $col $*
     28fi
    1829
    1930echo "Releasing lock: gs3-building.flock"
     31/bin/rm gs3-building.flock
    2032
    2133
  • gs3-installations/intermuse/trunk/sites/intermuse/collect/demo-localhost/IMPORT.sh

    r38240 r38281  
    22
    33source ../_local_collect_config.sh
     4
     5if [ "x$GSDL3SRCHOME" = "x" ] ; then
     6    pushd ../../../../../ && . ./SETUP.bash && popd
     7fi
     8   
    49
    510echo "***"
     
    1217
    1318
     19
    1420echo "Obtaining lock: gs3-building.flock"
    1521
    16 #sudo -u $gs_server_username -- \
    17 bash -c "pushd ../../../../../ && . ./gs3-setup.sh && popd && flock gs3-building.flock import.pl -removeold -site $site $col $*"
     22
     23if [ $gs_server_username != $USER ] ; then
     24    sudo -u $gs_server_username -- \
     25     flock gs3-building.flock import.pl -removeold -site $site $col $*
     26else
     27    flock gs3-building.flock import.pl -removeold -site $site $col $*
     28fi
    1829
    1930echo "Releasing lock: gs3-building.flock"
     31/bin/rm gs3-building.flock
    2032
    2133
     
    3446echo "Before running ./BUILDCOL.sh consider whether you want to 'hard-reset' "
    3547echo "the triplestore:"
    36 echo "    pushd $GSDL3SRCHOME"
    3748echo "    ./RESET-ANNOTATION-STORE.sh"
    38 echo "    popd"
    3949echo "****"
    4050echo "****"
  • gs3-installations/intermuse/trunk/sites/intermuse/collect/demo-localhost/INDEX-IIIF-MANIFEST.sh

    r38240 r38281  
    3737# and that version of the file is POSTed to /simpleAnnotationStore/manifests
    3838
     39pid=$$
     40
    3941echo ""
    4042echo "Downloading openannotation JSON for $docid as workaround to strip out leading blank space"
    4143echo "  $download_url"
    4244echo ""
    43 curl "$download_url" | egrep -v "^\\s*$" > tmp/doc-openannotation--with-otherContent--pid$$.json
     45curl --silent "$download_url" | egrep -v "^\\s*$" > tmp/doc-openannotation--with-otherContent--pid$pid.json
    4446
    4547
    46 iuri="$gs_library_url/sites/$site/collect/$col/tmp/doc-openannotation--with-otherContent--pid$$.json"
     48iuri="$gs_library_url/sites/$site/collect/$col/tmp/doc-openannotation--with-otherContent--pid$pid.json"
    4749
    4850#internal_url_base="http://localhost:4343/simpleAnnotationStore"
     
    5557echo curl -X POST -d \"uri=${iuri}\" \"$post_url\"
    5658#echo "[Dry run, suppressing curl]"
    57 curl -X POST -d "uri=${iuri}" "$post_url"
     59curl --silent -X POST -d "uri=${iuri}" "$post_url"
    5860
    5961if [ $? = 0 ] ; then
    60     /bin/rm tmp/doc-openannotation--with-otherContent--pid$$.json
     62    /bin/rm tmp/doc-openannotation--with-otherContent--pid$pid.json
    6163fi
    6264
    6365echo ""
    6466
    65 
    66 # Returns JSON output of the form:
     67# The above curl POST returns JSON output of the form:
    6768#   {"loaded":{"short_id":"f3bac06f17c9240b76b082dbdcbb365a","uri":"http://ld.greenstone.org/intermuse/programmes/HASH012cd965c3e83d504f4a78cd/manifest"}}
    6869
    69 # The short_id is needed to ...
    70 
     70# It might be the short_id is need for a later step in Greenstone, a comment to this affect was left in this script:
     71#
     72#    The short_id is needed to ...
     73#
     74# However no other detail given, and at present the features that are needed in Mirador appear to work OK
     75#
     76# Legacy comment written during a development phase that is no longer relevant/required??
    7177
    7278# {"loaded":{"short_id":"e2465cd7e5174f2720cee110d9b4a06a","uri":"http://ld.greenstone.org/intermuse/programmes-and-performers/HASH012cd965c3e83d504f4a78cd/manifest"}}+ echo ''
  • gs3-installations/intermuse/trunk/sites/intermuse/collect/demo-localhost/RESET-ANNOTATION-STORE.sh

    r38240 r38281  
    66pushd "$GSDL3SRCHOME"
    77
    8 #rm -rf gs2build/ext/apache-jena/etc/tdb-triple-store3
    98
    109./ant-stop-with-exts.sh
    1110ant reset-logs
    1211
    13 # rm -rf packages/tomcat/bin/data
     12if [ -d packages/tomcat/bin/data ] ; then
     13    echo "Removing packages/tomcat/bin/data"
     14    rm -rf packages/tomcat/bin/data
     15fi
     16
     17if [ -d ext/jena-fuseki/run3/database/greenstone ] ; then
     18       
     19    echo "Removing ext/jena-fuseki/run3/database/greenstone"
     20    rm -rf ext/jena-fuseki/run3/database/greenstone
     21fi 
     22
     23# Old gs2buidl ext ...
     24#rm -rf gs2build/ext/apache-jena/etc/tdb-triple-store3
     25
    1426
    1527./ant-start-with-exts.sh
Note: See TracChangeset for help on using the changeset viewer.