source: main/trunk/model-sites-dev/heritage-nz/collect/pdf-reports/ACTIVATE.sh@ 33157

Last change on this file since 33157 was 33157, checked in by davidb, 5 years ago

Additional text added to describe issue with running on networked drive

  • Property svn:executable set to *
File size: 935 bytes
RevLine 
[32806]1#!/bin/bash
2
[33029]3cwd=`pwd`
4col=${cwd##*/}
[32806]5
[33029]6activate.pl -site heritage-nz -library_url http://localhost:8383/greenstone3/hnz-library $* "$col"
7
[33157]8
9echo "***"
10echo "* activate.pl operating on a networked drive with a Solr-based Greenstone collection"
11echo "* is known to have a problem with file locking, with an issue that seems to be"
12echo "* related to it trying to reference a 'sidx' index, even though there is only a"
13echo "* 'didx' for this collection."
14echo "*"
15echo "* As a result of this, the effective 'mv building index' command goes awry, as"
16echo "* the index directory hasn't been completely removed, and so we end up with"
17echo "* 'building' inside of 'index'"
18echo "*"
19echo "* The fix is:"
20echo "* mv index/building ."
21echo "* mv index index.DUFF"
22echo "* mv building index"
23echo "*"
24echo "* Then restart the Greenstone3 server, as a user with sudo access:"
25echo "* sudo systemctl restart greenstone3"
26echo "***"
Note: See TracBrowser for help on using the repository browser.