4 . /usr/share/debconf/confmodule
8 if [ "$1" = "configure" ] ; then
9 if [ -f /etc/bweb/config ] ; then
10 echo "WARNING: /etc/bweb/config is no longer in use."
11 echo "Please, use /etc/bacula/bweb.conf instead."
16 chown www-data:root /etc/bacula/bweb.conf
17 chmod 600 /etc/bacula/bweb.conf
19 chown www-data:root /var/spool/bweb
20 chmod 700 /var/spool/bweb
23 echo "If you are using postgresql, you have to load /usr/share/bweb/bweb-postgresql.sql in your database"
25 echo "postgres@localhost:~$ psql bacula < /usr/share/bweb/bweb-postgresql.sql"
27 echo "If you are using mysql, you have to load /usr/share/bweb/bweb-mysql.sql in your database"
28 echo "root@localhost:~$ mysql bacula < /usr/share/bweb/bweb-mysql.sql"
30 echo "You can use user/passwd (see /etc/apache/conf.d/bweb.conf)"
31 echo "You have to reload your apache configuration"
33 echo "'/usr/bin/bconsole -n -c /etc/bacula/bconsole.conf' must be accessible"
34 echo "by your www-data. You meed to use :"
35 echo "chmod 644 /etc/bacula/bconsole.conf"
36 echo "chmod 755 /usr/bin/bconsole"