3 # Change the following four environment variables to suit your system
5 # Root directory of web files
9 # share directory for programs
13 # cgi_bin location for web server
15 CGI_BIN=/usr/lib/cgi-bin
17 # Userid the web server is running under
22 # Normally you should not need to change the following
24 # first, copy the bweb perl library into your PERL5 INC path
28 # copy the bweb perl program to your cgi location
29 mkdir -m 755 ${CGI_BIN}/bweb
30 install -m 755 -o root -g root cgi/*.pl ${CGI_BIN}/bweb
33 mkdir -m 755 /etc/bacula
34 chown root:bacula /etc/bacula
35 echo '$VAR1 = { template_dir => "${SHARE_DIR}/bweb/tpl" };' > /etc/bacula/bweb.conf
36 chown ${HTTP_UID} /etc/bacula/bweb.conf
38 # copy the bweb template file
39 mkdir -p ${SHARE_DIR}/bweb/tpl
40 install -m 644 -o root -g root bweb/tpl/*.tpl ${SHARE_DIR}/bweb/tpl
42 # copy the bweb graphics elements (bweb elements must reside in /bweb)
44 install -m 644 -o root -g root bweb/html/*.{js,png,css,gif,ico} ${WEB_DIR}/bweb