From d844fc99fe49c2bcb20fe5fe904986f6c5a6e650 Mon Sep 17 00:00:00 2001 From: Kern Sibbald Date: Fri, 5 Jan 2007 19:21:03 +0000 Subject: [PATCH] Update install_bweb git-svn-id: https://bacula.svn.sourceforge.net/svnroot/bacula/trunk@3934 91ce42f0-d328-0410-95d8-f526ca767f89 --- gui/bweb/install_bweb | 46 ++++++++++++++++++++++++++++++++++++++++--- 1 file changed, 43 insertions(+), 3 deletions(-) diff --git a/gui/bweb/install_bweb b/gui/bweb/install_bweb index 694ecbb14e..32da50441d 100755 --- a/gui/bweb/install_bweb +++ b/gui/bweb/install_bweb @@ -16,8 +16,8 @@ CGI_BIN=/srv/www/cgi-bin # # Userid the web server is running under # -HTTP_USER=root -HTTP_GROUP=root +HTTP_USER=wwwrun +HTTP_GROUP=www if [ `whoami` != "root" ] ; then echo "You must be root to run this script." @@ -42,7 +42,47 @@ if [ ! -d /etc/bacula ] ; then mkdir -m 755 /etc/bacula chown root:bacula /etc/bacula fi -echo '$VAR1 = { template_dir => "${SHARE_DIR}/bweb/tpl" };' > /etc/bacula/bweb.conf + +# Setup a default /etc/bacula/bweb.conf +cat > /etc/bacula/bweb.conf < '/usr/share/fonts/truetype/ttf-bitstream-vera/Vera.ttf', + 'name' => undef, + 'config_file' => '/etc/bacula/bweb.conf', + 'bconsole' => '/usr/sbin/bconsole -n -c /etc/bacula/bconsole.conf', + 'ach_list' => { + 'S1_L80' => bless( { + 'info' => { + 'drive' => 0, + 'io' => 0, + 'slot' => 0 + }, + 'name' => 'S1_L80', + 'bweb' => undef, + 'device' => '/dev/changer', + 'drive' => [], + 'debug' => 0, + 'label' => {}, + 'precmd' => 'sudo', + 'io' => [], + 'mtxcmd' => '/usr/sbin/mtx', + 'drive_name' => [ + 'S1_L80_SDLT0', + 'S1_L80_SDLT1' + ], + 'slot' => [] + }, 'Bweb::Autochanger' ) + }, + 'password' => 'xxx', + 'template_dir' => '${SHARE_DIR}/bweb/tpl', + 'dbi' => 'DBI:mysql:database=bacula', + 'error' => '', + 'debug' => 0, + 'user' => 'bacula', + 'email_media' => 'xxxx@localhost' +}, 'Bweb::Config' ); +END_OF_DATA + chown ${HTTP_USER} /etc/bacula/bweb.conf # copy the bweb template file -- 2.39.5