Changeset 33205 for main

Show
Ignore:
Timestamp:
23.06.2019 22:50:24 (3 months ago)
Author:
davidb
Message:

Adjustment in echo info printed out

Location:
main/trunk/model-sites-dev/heritage-nz/collect/pdf-reports
Files:
2 modified

Legend:

Unmodified
Added
Removed
  • main/trunk/model-sites-dev/heritage-nz/collect/pdf-reports/ACTIVATE.sh

    r33157 r33205  
    88 
    99echo "***" 
    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" 
     10echo "* Now run:" 
     11echo "*  ./FIX-UP-INDEX.sh" 
    2312echo "*" 
    2413echo "* 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  
    11#!/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" 
    218 
    319rm -rf index.DUFF/ 
     
    1026  echo " Renaming 'building' to 'index'" 
    1127  mv building index 
     28 
     29echo "" 
     30echo "Now restart the Greenstone3 server, as a user with sudo access:" 
     31echo "  sudo systemctl restart greenstone3" 
     32 
    1233else 
    13   echo " Failed to find 'building' inside 'index'" >&2 
    14   echo " Directory structure not in the form expected for fixing" >&2 
    15   echo " Exiting" >&2 
     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 
    1637fi 
    1738