install -m 755 -o root -g root bweb/cgi/*.pl /usr/lib/cgi-bin/bweb
# get a config file
- mkdir -m 750 /etc/bweb
- chown root:www-data /etc/bweb
- echo '$VAR1 = { template_dir => "/usr/share/bweb/tpl" };' > /etc/bweb/config
- chown www-data /etc/bweb/config
+ mkdir -m 755 /etc/bacula
+ chown root:bacula /etc/bacula
+ echo '$VAR1 = { template_dir => "/usr/share/bweb/tpl" };' > /etc/bacula/bweb.conf
+ chown www-data /etc/bacula/bweb.conf
# copy bweb template file
mkdir -p /usr/share/bweb/tpl
################ CONFIGURATION #################################
-/etc/bweb/config looks like : (you can edit it inside bweb)
+/etc/bacula/bweb.conf looks like : (you can edit it inside bweb)
$VAR1 = bless( {
'graph_font' => '/usr/share/fonts/truetype/ttf-bitstream-vera/Vera.ttf',
'name' => undef,
- 'config_file' => '/etc/bweb/config',
+ 'config_file' => '/etc/bacula/bweb.conf',
'bconsole' => '/usr/sbin/bconsole -n -c /etc/bacula/bconsole.conf',
'ach_list' => {
'S1_L80' => bless( {
- Release Notes for bweb 1.39.32
+ Release Notes for bweb 2.0
+
+2006/12/31
+ - Move /etc/bweb/config to /etc/bacula/bweb.conf
2006/12/29
- Add graphical backup view. See INSTALL to enable it. It's usefull
use Bweb;
use Bconsole;
-my $conf = new Bweb::Config(config_file => '/etc/bweb/config');
+my $conf = new Bweb::Config(config_file => $Bweb::config_file);
$conf->load();
my $bweb = new Bweb(info => $conf);
=cut
-# TODO:
-# Si c'est un fichier selectionne, afficher ses attributs
-# ajouter le base_fic et base_url dans les options bweb
-#
-
use strict;
use POSIX qw/strftime/;
use Bweb;
use Digest::MD5 qw(md5_hex);
use File::Basename qw/basename dirname/;
-my $conf = new Bweb::Config(config_file => '/etc/bweb/config');
+my $conf = new Bweb::Config(config_file => $Bweb::config_file);
$conf->load();
my $bweb = new Bweb(info => $conf);
$bweb->connect_db();
END;
$$ language 'plpgsql';
-ALTER TABLE brestore_pathvisibility ADD Size int8;
+ALTER TABLE brestore_pathvisibility ADD Size int8;
+
+
+
+ALTER TABLE brestore_pathvisibility ADD Files int4;
use POSIX qw/strftime/;
-my $conf = new Bweb::Config(config_file => '/etc/bweb/config');
+my $conf = new Bweb::Config(config_file => $Bweb::config_file);
$conf->load();
my $bweb = new Bweb(info => $conf);
}
# loading config file
-my $conf = new Bweb::Config(config_file => '/etc/bweb/config');
+my $conf = new Bweb::Config(config_file => $Bweb::config_file);
$conf->load();
my $bweb = new Bweb(info => $conf);
use HTML::Template;
our $template_dir='/usr/share/bweb/tpl';
-
+our $config_file='/etc/bacula/bweb.conf';
=head1 FUNCTION