From 647dcb00fe12c8ac8e5aea64524897c9fbb938ff Mon Sep 17 00:00:00 2001 From: Eric Bollengier Date: Tue, 4 Aug 2009 16:05:13 +0200 Subject: [PATCH] fix small pb in bweb starthttp script --- gui/bweb/script/starthttp | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) 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 -- 2.39.5