]> git.sur5r.net Git - bacula/bacula/commitdiff
bweb: permit relatif path to starthttp command
authorEric Bollengier <eric@eb.homelinux.org>
Wed, 19 Aug 2009 09:53:26 +0000 (11:53 +0200)
committerEric Bollengier <eric@eb.homelinux.org>
Tue, 22 Sep 2009 09:01:33 +0000 (11:01 +0200)
gui/bweb/script/starthttp

index be0e5f3b33a22780e50f7df45109588c88de1eb2..5fab8bc94247afa93400d384ea968acd4aa02682 100755 (executable)
@@ -13,6 +13,9 @@ elif [ -f $PWD/../html/bweb.js ]; then
 elif [ -f $BASE/html/bweb.js ]; then
     BWEBBASE=$BASE
 
+elif [ -f $BASE/../html/bweb.js ]; then
+    BWEBBASE=$(cd $BASE; dirname $(pwd))
+
 else
     echo "Can't determine bweb installation directory"
     exit 1