4 . /usr/share/debconf/confmodule
8 if [ "$1" = "configure" ] ; then
9 if [ -f /etc/bweb/config ] ; then
10 echo "/etc/bweb/config have moved to /etc/bacula/bweb.conf"
11 echo "you can remove /etc/bweb"
12 [ ! -d /etc/bacula ] && mkdir /etc/bacula
13 cp -p /etc/bweb/config /etc/bacula/bweb.conf
14 sed -i 's!/etc/bweb/config!/etc/bacula/bweb.conf!' /etc/bacula/bweb.conf
17 if [ ! -f /etc/bacula/bweb.conf ] ; then
18 echo '$VAR1 = { template_dir => "/usr/share/bweb/tpl" };' > /etc/bacula/bweb.conf
20 chown www-data:root /etc/bacula/bweb.conf
21 chmod 640 /etc/bacula/bweb.conf
23 chown www-data:root /var/spool/bweb
24 chmod 700 /var/spool/bweb
27 echo "If you are using postgresql, you have to load /usr/share/bweb/bweb-postgresql.sql in your database"
29 echo "postgres@localhost:~$ psql bacula < /usr/share/bweb/bweb-postgresql.sql"