]> git.sur5r.net Git - bacula/bacula/blob - gui/bweb/script/starthttp
Add info on bweb + lighttpd
[bacula/bacula] / gui / bweb / script / starthttp
1 #!/bin/sh
2
3 # start bweb with lighttpd
4
5 BASE=$(dirname $0)
6
7 if [ -f $PWD/html/bweb.js ]; then
8    BWEBBASE=$PWD
9
10 elif [ -f $PWD/../html/bweb.js ]; then
11     BWEBBASE=$(dirname $PWD)
12
13 elif [ -f $BASE/html/bweb.js ]; then
14     BWEBBASE=$BASE
15
16 else
17     echo "Can't determine bweb installation directory"
18     exit 1
19 fi
20
21 host=$(awk -F'"' '/bind/ { print $2 }' $BWEBBASE/script/httpd.conf)
22 port=$(awk '/port/ { print $3 }' $BWEBBASE/script/httpd.conf)
23
24 echo "Using bweb on $BWEBBASE,  use firefox http://$host:$port"
25 export BWEBBASE
26 export PERL5LIB=$BWEBBASE/lib
27
28 lighttpd -f $BWEBBASE/script/httpd.conf