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

Last change on this file since 38951 was 38438, checked in by davidb, 6 months ago

Now checks for a README.txt file

  • Property svn:executable set to *
File size: 1.6 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
44echo "Checking for installation specific README instructions ..."
45wget --no-check-certificate -q -O - https://svn.greenstone.org/gs3-installations/$installation/trunk/README.txt > /dev/null
46install_readme_status=$?
47
48if [ $install_readme_status == 0 ] ; then
49 echo "... found"
50 echo "----"
51 wget --no-check-certificate -q -O - https://svn.greenstone.org/gs3-installations/$installation/trunk/README.txt
52 echo "----"
53else
54 echo "... none found"
55fi
56
57echo ""
58
59if [ $interface_status == 0 ] || [ $site_status == 0 ] ; then
60 echo "----"
61 echo "To use the checked out installation, update:"
62 echo " \$GSDL3SRCHOME/resources/web/servlet.xml.in"
63 echo "And restart the server"
64 echo "----"
65 echo ""
66fi
Note: See TracBrowser for help on using the repository browser.