Line | |
---|
1 | #!/bin/bash
|
---|
2 |
|
---|
3 | progname=$0
|
---|
4 |
|
---|
5 | source ../../bin/script/test-setup.bash
|
---|
6 | source ../../lib/cascade-lib.bash
|
---|
7 |
|
---|
8 | prefix=$GEXTVIDEO_INSTALLED/server
|
---|
9 |
|
---|
10 |
|
---|
11 | # Ensure that the necessary directories exist within the 'installed' area
|
---|
12 |
|
---|
13 |
|
---|
14 | for d in logs htdocs conf ; do
|
---|
15 | if [ ! -e $prefix/$d ] ; then
|
---|
16 | echo "Creating $prefix/$d"
|
---|
17 | mkdir $prefix/$d
|
---|
18 | fi
|
---|
19 | done
|
---|
20 |
|
---|
21 | # Install necessary config files to work with Greenstone
|
---|
22 |
|
---|
23 | gsvidinstalled=$prefix
|
---|
24 |
|
---|
25 | ( cd gslighttpd ; \
|
---|
26 | cat lighttpd.conf.in \
|
---|
27 | | sed "s%@GSVIDINSTALLED@%$gsvidinstalled%g" \
|
---|
28 | > $prefix/conf/lighttpd.conf )
|
---|
29 |
|
---|
30 | if [ $? != 0 ] ; then
|
---|
31 | echo " Error encountered running *customise install* stage of GSLIGHTTPD.sh"
|
---|
32 | exit 1
|
---|
33 | fi
|
---|
34 |
|
---|
35 |
|
---|
36 | ( cd gslighttpd ; \
|
---|
37 | /bin/cp index.html $prefix/htdocs/. )
|
---|
38 |
|
---|
39 | if [ $? != 0 ] ; then
|
---|
40 | echo " Error encountered running *customise install* stage of GSLIGHTTPD.sh"
|
---|
41 | exit 1
|
---|
42 | fi
|
---|
43 |
|
---|
Note:
See
TracBrowser
for help on using the repository browser.