]> git.sur5r.net Git - bacula/bacula/commitdiff
fix small pb in bweb starthttp script
authorEric Bollengier <eric@eb.homelinux.org>
Tue, 4 Aug 2009 14:05:13 +0000 (16:05 +0200)
committerEric Bollengier <eric@eb.homelinux.org>
Tue, 4 Aug 2009 14:07:09 +0000 (16:07 +0200)
gui/bweb/script/starthttp

index e2e4e2aa7c8d4b32e2034cc070a7397b10f6dbf3..0b79465d9981e4ca4e82922f2697b4fe7f30dd65 100755 (executable)
@@ -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 <<EOF
+if [ ! -f $BWEBBASE/bweb.conf ]; then
+    echo "Making configuration template in $BWEBBASE/bweb.conf"
+    cat > $BWEBBASE/bweb.conf <<EOF
 \$VAR1 = { template_dir => '$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