source: extensions/gsdl-video/trunk/packages/server/CASCADE-MAKE/GSLIGHTTPD.sh@ 18425

Last change on this file since 18425 was 18425, checked in by davidb, 15 years ago

Video extension to Greenstone

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