source: main/trunk/model-sites-dev/heritage-nz/collect/pdf-reports/FIX-UP-INDEX.sh@ 33202

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

Script to simplify fixing up network locking problem when running activate

  • Property svn:executable set to *
File size: 414 bytes
Line 
1#!/bin/bash
2
3rm -rf index.DUFF/
4
5if [ -d index/building ] ; then
6 echo " Moving 'building' out of 'index'"
7 mv index/building .
8 echo " Renaming 'index' to 'index.DUFF'"
9 mv index index.DUFF
10 echo " Renaming 'building' to 'index'"
11 mv building index
12else
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
16fi
17
Note: See TracBrowser for help on using the repository browser.