Changeset 33205 for main/trunk/model-sites-dev
- Timestamp:
- 2019-06-23T22:50:24+12:00 (5 years ago)
- Location:
- main/trunk/model-sites-dev/heritage-nz/collect/pdf-reports
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
main/trunk/model-sites-dev/heritage-nz/collect/pdf-reports/ACTIVATE.sh
r33157 r33205 8 8 9 9 echo "***" 10 echo "* activate.pl operating on a networked drive with a Solr-based Greenstone collection" 11 echo "* is known to have a problem with file locking, with an issue that seems to be" 12 echo "* related to it trying to reference a 'sidx' index, even though there is only a" 13 echo "* 'didx' for this collection." 14 echo "*" 15 echo "* As a result of this, the effective 'mv building index' command goes awry, as" 16 echo "* the index directory hasn't been completely removed, and so we end up with" 17 echo "* 'building' inside of 'index'" 18 echo "*" 19 echo "* The fix is:" 20 echo "* mv index/building ." 21 echo "* mv index index.DUFF" 22 echo "* mv building index" 10 echo "* Now run:" 11 echo "* ./FIX-UP-INDEX.sh" 23 12 echo "*" 24 13 echo "* Then restart the Greenstone3 server, as a user with sudo access:" -
main/trunk/model-sites-dev/heritage-nz/collect/pdf-reports/FIX-UP-INDEX.sh
r33161 r33205 1 1 #!/bin/bash 2 3 4 # echo "***" 5 # echo "* activate.pl operating on a networked drive with a Solr-based Greenstone collection" 6 # echo "* is known to have a problem with file locking, with an issue that seems to be" 7 # echo "* related to it trying to reference a 'sidx' index, even though there is only a" 8 # echo "* 'didx' for this collection." 9 # echo "*" 10 # echo "* As a result of this, the effective 'mv building index' command goes awry, as" 11 # echo "* the index directory hasn't been completely removed, and so we end up with" 12 # echo "* 'building' inside of 'index'" 13 # echo "*" 14 # echo "* This script implements a fix, by doing the following:" 15 # echo "* mv index/building ." 16 # echo "* mv index index.DUFF" 17 # echo "* mv building index" 2 18 3 19 rm -rf index.DUFF/ … … 10 26 echo " Renaming 'building' to 'index'" 11 27 mv building index 28 29 echo "" 30 echo "Now restart the Greenstone3 server, as a user with sudo access:" 31 echo " sudo systemctl restart greenstone3" 32 12 33 else 13 echo " 14 echo " 15 echo " 34 echo "Failed to find 'building' inside 'index'" >&2 35 echo "Directory structure not in the form expected for fixing" >&2 36 echo "Exiting" >&2 16 37 fi 17 38
Note:
See TracChangeset
for help on using the changeset viewer.