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 |
|
---|
3 | if [ $# = 0 ] ; then
|
---|
4 | echo "" >&2
|
---|
5 | echo "Usage: $0 <installation-name>" >&2
|
---|
6 | echo "" >&2
|
---|
7 | exit 1
|
---|
8 | fi
|
---|
9 |
|
---|
10 | installation=$1
|
---|
11 |
|
---|
12 | . ./_gs-wget-check.bash
|
---|
13 |
|
---|
14 |
|
---|
15 | echo ""
|
---|
16 | echo "Checking for interface ..."
|
---|
17 |
|
---|
18 | wget --no-check-certificate -q -O - https://svn.greenstone.org/gs3-installations/$installation/trunk/interfaces/$installation > /dev/null
|
---|
19 | interface_status=$?
|
---|
20 |
|
---|
21 | if [ $interface_status == 0 ] ; then
|
---|
22 | echo "... found $intstallation"
|
---|
23 | ./get-installation-interface.sh $installation
|
---|
24 | else
|
---|
25 | echo "... not found => nothing to download"
|
---|
26 | fi
|
---|
27 |
|
---|
28 |
|
---|
29 | echo ""
|
---|
30 | echo "Checking for site ..."
|
---|
31 |
|
---|
32 | wget --no-check-certificate -q -O - https://svn.greenstone.org/gs3-installations/$installation/trunk/sites/$installation > /dev/null
|
---|
33 | site_status=$?
|
---|
34 |
|
---|
35 | if [ $site_status == 0 ] ; then
|
---|
36 | echo "... found $intstallation"
|
---|
37 | ./get-installation-site.sh $installation
|
---|
38 | else
|
---|
39 | echo "... not found => nothing to download"
|
---|
40 | fi
|
---|
41 |
|
---|
42 | echo ""
|
---|
43 |
|
---|
44 | if [ $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 ""
|
---|
51 | fi
|
---|
Note:
See
TracBrowser
for help on using the repository browser.