]> git.sur5r.net Git - bacula/bacula/blobdiff - gui/bweb/INSTALL
ebl info about get cvs files
[bacula/bacula] / gui / bweb / INSTALL
index 3608356cc5d4e676530e904276b8149bc920bb19..01c4f27efb3fcc2a411b8cf2b7404848788b8582 100644 (file)
@@ -14,6 +14,10 @@ Bweb works well with 1.39 release.
 8) using sudo with autochanger
 
 ################ FILE COPY #####################################
+ # you must get bweb cvs files
+ cvs -d:pserver:anonymous@bacula.cvs.sourceforge.net:/cvsroot/bacula login 
+ cvs -z3 -d:pserver:anonymous@bacula.cvs.sourceforge.net:/cvsroot/bacula co -P gui
+ cd gui
 
  # first, copy bweb perl librarie in your PERL5 INC path
  install -m 644 -o root -g root  bweb/lib/*.pm /usr/share/perl5
@@ -38,6 +42,9 @@ Bweb works well with 1.39 release.
 
  # done !
 
+ WARNING : Your www-data user must be able to execute bconsole and able to read bconsole.conf !
+           You can create an bconsole group for that.
+
 ################ INSTALL PERL LIBRARY ##########################
 
  - perl modules
@@ -143,7 +150,7 @@ cd bacula-src
 patch -p1 < message.patch
 --- cvs/src/lib/message.c       2006-07-27 21:06:20.000000000 +0200
 +++ cvs/src/lib/message.c.director      2006-07-28 13:46:49.171083494 +0200
-@@ -716,6 +716,18 @@
+@@ -716,6 +716,20 @@
                  }
                  fputs(dt, d->fd);
                  fputs(msg, d->fd);
@@ -155,8 +162,10 @@ patch -p1 < message.patch
 +                       char *p = (char *)malloc(len * 2 + 1);
 +                       db_escape_string(p, msg, len);
 +                       FILE *fp = fopen("/tmp/log.sql", "a");
-+                       fprintf(fp, "INSERT INTO Log (Time, JobId, LogText) VALUES (NOW(),%s, '%s');\n", edit_int64(jcr->JobId, ed1), p);
-+                       fclose(fp);
++                       if (fp) {
++                          fprintf(fp, "INSERT INTO Log (Time, JobId, LogText) VALUES (Now(), %s, '%s');\n", edit_int64(jcr->JobId, ed1), p);
++                          fclose(fp);
++                       }
 +               }
 +
                  break;
@@ -171,7 +180,7 @@ you can revert it with patch -p1 -R < message.patch
 
 To get bweb working, you must follow these rules
  - Media, Storage and Pool must have [A-Za-z_0-9\.-]+ (no space)
- - AutoChanger name must be same as Storage name device in bacula
+ - AutoChanger name must be same as Device and Location name in bacula
 
 ################ SUDO CONFIGURATION ############################