From: Kern Sibbald Date: Sun, 7 Jan 2007 07:20:50 +0000 (+0000) Subject: Update install script and INSTALL X-Git-Tag: Release-2.0.1~42 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=1c418f4f442aebbee6a66b03b7033259636db583;p=bacula%2Fbacula Update install script and INSTALL git-svn-id: https://bacula.svn.sourceforge.net/svnroot/bacula/trunk@3938 91ce42f0-d328-0410-95d8-f526ca767f89 --- diff --git a/gui/bweb/install_bweb b/gui/bweb/install_bweb index b2df1a52d6..5e0d2484c8 100755 --- a/gui/bweb/install_bweb +++ b/gui/bweb/install_bweb @@ -19,6 +19,12 @@ CGI_BIN=/srv/www/cgi-bin HTTP_USER=wwwrun HTTP_GROUP=www +# Bacula database name and password +DB=bacula +DB_PW="" +EMAIL_ADDR="xxx@localhost" +MTX="/sbin/mtx" + if [ `whoami` != "root" ] ; then echo "You must be root to run this script." exit 1 @@ -45,7 +51,7 @@ fi # 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', @@ -65,7 +71,7 @@ $VAR1 = bless( { 'label' => {}, 'precmd' => 'sudo', 'io' => [], - 'mtxcmd' => '/usr/sbin/mtx', + 'mtxcmd' => '${MTX}', 'drive_name' => [ 'S1_L80_SDLT0', 'S1_L80_SDLT1' @@ -73,13 +79,13 @@ $VAR1 = bless( { 'slot' => [] }, 'Bweb::Autochanger' ) }, - 'password' => 'xxx', + 'password' => '${DB_PW}', 'template_dir' => '${SHARE_DIR}/bweb/tpl', 'dbi' => 'DBI:mysql:database=bacula', 'error' => '', 'debug' => 0, - 'user' => 'bacula', - 'email_media' => 'xxxx@localhost' + 'user' => '${DB}', + 'email_media' => '${EMAIL_ADDR}' }, 'Bweb::Config' ); END_OF_DATA