source: gs3-installations/intermuse/trunk/sites/intermuse/collect/demo-localhost/IMPORT.sh@ 38294

Last change on this file since 38294 was 38294, checked in by davidb, 8 months ago

Tighten up full-build script sequence

  • Property svn:executable set to *
File size: 950 bytes
Line 
1#!/bin/bash
2
3source ../_local_collect_config.sh
4
5if [ "x$GSDL3SRCHOME" = "x" ] ; then
6 pushd ../../../../../ && . ./SETUP.bash && popd
7fi
8
9
10echo "***"
11echo "* Starting full import"
12echo "***"
13
14echo
15echo "Start time: `date`"
16echo
17
18
19
20echo "Obtaining lock: gs3-building.flock"
21
22
23if [ $gs_server_username != $USER ] ; then
24 sudo -u $gs_server_username -- \
25 flock gs3-building.flock import.pl -removeold -site $site $col $*
26else
27 flock gs3-building.flock import.pl -removeold -site $site $col $*
28fi
29
30echo "Releasing lock: gs3-building.flock"
31/bin/rm gs3-building.flock
32
33
34echo "***"
35echo "* Finished full import"
36echo "***"
37
38echo
39echo "End time: `date`"
40echo
41
42
43echo "****"
44echo "* Next run ./BUILDCOL.sh"
45echo "****"
46echo ""
47
48#echo ""
49#echo "****"
50#echo "****"
51#echo "Before running ./BUILDCOL.sh consider whether you want to 'hard-reset' "
52#echo "the triplestore:"
53#echo " ./RESET-ANNOTATION-STORE.sh"
54#echo "****"
55#echo "****"
56#echo ""
Note: See TracBrowser for help on using the repository browser.