Changeset 38281 for gs3-installations
- Timestamp:
- 2023-10-03T17:29:42+13:00 (9 months ago)
- 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 2 2 3 3 source ../_local_collect_config.sh 4 5 if [ "x$GSDL3SRCHOME" = "x" ] ; then 6 pushd ../../../../../ && . ./SETUP.bash && popd 7 fi 4 8 5 9 echo "***" … … 14 18 echo "Obtaining lock: gs3-building.flock" 15 19 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 23 if [ $gs_server_username != $USER ] ; then 24 sudo -u $gs_server_username -- \ 25 flock gs3-building.flock buildcol.pl -removeold -site $site $col $* 26 else 27 flock gs3-building.flock buildcol.pl -removeold -site $site $col $* 28 fi 18 29 19 30 echo "Releasing lock: gs3-building.flock" 31 /bin/rm gs3-building.flock 20 32 21 33 -
gs3-installations/intermuse/trunk/sites/intermuse/collect/demo-localhost/IMPORT.sh
r38240 r38281 2 2 3 3 source ../_local_collect_config.sh 4 5 if [ "x$GSDL3SRCHOME" = "x" ] ; then 6 pushd ../../../../../ && . ./SETUP.bash && popd 7 fi 8 4 9 5 10 echo "***" … … 12 17 13 18 19 14 20 echo "Obtaining lock: gs3-building.flock" 15 21 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 23 if [ $gs_server_username != $USER ] ; then 24 sudo -u $gs_server_username -- \ 25 flock gs3-building.flock import.pl -removeold -site $site $col $* 26 else 27 flock gs3-building.flock import.pl -removeold -site $site $col $* 28 fi 18 29 19 30 echo "Releasing lock: gs3-building.flock" 31 /bin/rm gs3-building.flock 20 32 21 33 … … 34 46 echo "Before running ./BUILDCOL.sh consider whether you want to 'hard-reset' " 35 47 echo "the triplestore:" 36 echo " pushd $GSDL3SRCHOME"37 48 echo " ./RESET-ANNOTATION-STORE.sh" 38 echo " popd"39 49 echo "****" 40 50 echo "****" -
gs3-installations/intermuse/trunk/sites/intermuse/collect/demo-localhost/INDEX-IIIF-MANIFEST.sh
r38240 r38281 37 37 # and that version of the file is POSTed to /simpleAnnotationStore/manifests 38 38 39 pid=$$ 40 39 41 echo "" 40 42 echo "Downloading openannotation JSON for $docid as workaround to strip out leading blank space" 41 43 echo " $download_url" 42 44 echo "" 43 curl "$download_url" | egrep -v "^\\s*$" > tmp/doc-openannotation--with-otherContent--pid$$.json45 curl --silent "$download_url" | egrep -v "^\\s*$" > tmp/doc-openannotation--with-otherContent--pid$pid.json 44 46 45 47 46 iuri="$gs_library_url/sites/$site/collect/$col/tmp/doc-openannotation--with-otherContent--pid$ $.json"48 iuri="$gs_library_url/sites/$site/collect/$col/tmp/doc-openannotation--with-otherContent--pid$pid.json" 47 49 48 50 #internal_url_base="http://localhost:4343/simpleAnnotationStore" … … 55 57 echo curl -X POST -d \"uri=${iuri}\" \"$post_url\" 56 58 #echo "[Dry run, suppressing curl]" 57 curl - X POST -d "uri=${iuri}" "$post_url"59 curl --silent -X POST -d "uri=${iuri}" "$post_url" 58 60 59 61 if [ $? = 0 ] ; then 60 /bin/rm tmp/doc-openannotation--with-otherContent--pid$ $.json62 /bin/rm tmp/doc-openannotation--with-otherContent--pid$pid.json 61 63 fi 62 64 63 65 echo "" 64 66 65 66 # Returns JSON output of the form: 67 # The above curl POST returns JSON output of the form: 67 68 # {"loaded":{"short_id":"f3bac06f17c9240b76b082dbdcbb365a","uri":"http://ld.greenstone.org/intermuse/programmes/HASH012cd965c3e83d504f4a78cd/manifest"}} 68 69 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?? 71 77 72 78 # {"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 6 6 pushd "$GSDL3SRCHOME" 7 7 8 #rm -rf gs2build/ext/apache-jena/etc/tdb-triple-store39 8 10 9 ./ant-stop-with-exts.sh 11 10 ant reset-logs 12 11 13 # rm -rf packages/tomcat/bin/data 12 if [ -d packages/tomcat/bin/data ] ; then 13 echo "Removing packages/tomcat/bin/data" 14 rm -rf packages/tomcat/bin/data 15 fi 16 17 if [ -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 21 fi 22 23 # Old gs2buidl ext ... 24 #rm -rf gs2build/ext/apache-jena/etc/tdb-triple-store3 25 14 26 15 27 ./ant-start-with-exts.sh
Note:
See TracChangeset
for help on using the changeset viewer.