source: main/trunk/greenstone3/web/get-installation.sh@ 38433

Last change on this file since 38433 was 38433, checked in by davidb, 7 months ago

Higher level script to make installing the site and interface to an installation easier

  • Property svn:executable set to *
File size: 1.1 KB
Line 
1#!/bin/bash
2
3if [ $# = 0 ] ; then
4 echo "" >&2
5 echo "Usage: $0 <installation-name>" >&2
6 echo "" >&2
7 exit 1
8fi
9
10installation=$1
11
12. ./_gs-wget-check.bash
13
14
15echo ""
16echo "Checking for interface ..."
17
18wget --no-check-certificate -q -O - https://svn.greenstone.org/gs3-installations/$installation/trunk/interfaces/$installation > /dev/null
19interface_status=$?
20
21if [ $interface_status == 0 ] ; then
22 echo "... found $intstallation"
23 ./get-installation-interface.sh $installation
24else
25 echo "... not found => nothing to download"
26fi
27
28
29echo ""
30echo "Checking for site ..."
31
32wget --no-check-certificate -q -O - https://svn.greenstone.org/gs3-installations/$installation/trunk/sites/$installation > /dev/null
33site_status=$?
34
35if [ $site_status == 0 ] ; then
36 echo "... found $intstallation"
37 ./get-installation-site.sh $installation
38else
39 echo "... not found => nothing to download"
40fi
41
42echo ""
43
44if [ $interface_status == 0 ] || [ $site_status == 0 ] ; then
45 echo "----"
46 echo "To use the checked out installation, update:"
47 echo " \$GSDL3SRCHOME/resources/web/servlet.xml.in"
48 echo "And restart the server"
49 echo "----"
50 echo ""
51fi
Note: See TracBrowser for help on using the repository browser.