From: Eric Bollengier Date: Tue, 4 Aug 2009 14:05:13 +0000 (+0200) Subject: fix small pb in bweb starthttp script X-Git-Tag: Release-5.0.0~337^2~1 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=647dcb00fe12c8ac8e5aea64524897c9fbb938ff;p=bacula%2Fbacula fix small pb in bweb starthttp script --- diff --git a/gui/bweb/script/starthttp b/gui/bweb/script/starthttp index e2e4e2aa7c..0b79465d99 100755 --- a/gui/bweb/script/starthttp +++ b/gui/bweb/script/starthttp @@ -18,15 +18,15 @@ else exit 1 fi -grep /etc/bacula/bweb.conf $BASE/lib/Bweb.pm > /dev/null +grep /etc/bacula/bweb.conf $BWEBBASE/lib/Bweb.pm > /dev/null if [ $? -eq 0 ]; then echo "Adjusting bweb.conf path" - sed -i~ "s:/etc/bacula/bweb.conf:$BASE/bweb.conf:" $BASE/lib/Bweb.pm + sed -i~ "s:/etc/bacula/bweb.conf:$BWEBBASE/bweb.conf:" $BWEBBASE/lib/Bweb.pm fi -if [ ! -f $BASE/bweb.conf ]; then - echo "Making configuration template in $BASE/bweb.conf" - cat > $BASE/bweb.conf < $BWEBBASE/bweb.conf < '$PWD/lang', fv_write_path => '/tmp/', }; @@ -47,3 +47,7 @@ if [ x$1 = x -o x$1 = xstart ]; then exit $? fi fi + +if [ x$1 = xstop ]; then + killall lighttpd +fi