]> git.sur5r.net Git - bacula/bacula/blobdiff - gui/debian/bweb.postinst
ebl Fix a bug in user edition
[bacula/bacula] / gui / debian / bweb.postinst
index 6ffc9d68ce17d5f15eb523939765efd4fa9e979b..a62117bf14dae3c25718ceba7164640be2dd88ad 100644 (file)
@@ -13,7 +13,8 @@ if [ "$1" = "configure" ] ; then
 
  chmod 755 /etc/bacula
 
- chown www-data:bacula /etc/bacula/bweb.conf
+ chown www-data:root /etc/bacula/bweb.conf
+ chgrp bacula /etc/bacula/bweb.conf || true
  chmod 640 /etc/bacula/bweb.conf
 
  chown www-data:root /var/spool/bweb
@@ -22,7 +23,8 @@ if [ "$1" = "configure" ] ; then
  echo
  echo "If you are using postgresql, you have to load /usr/share/bweb/bweb-postgresql.sql in your database"
  
- echo "postgres@localhost:~$ psql bacula < /usr/share/bweb/bweb-postgresql.sql"
+ echo "postgres@localhost:~$ createlang plpgsql -Upostgres -d bacula"
+ echo "postgres@localhost:~$ psql -U bacula bacula < /usr/share/bweb/bweb-postgresql.sql"
  echo 
  echo "If you are using mysql, you have to load /usr/share/bweb/bweb-mysql.sql in your database"
  echo "root@localhost:~$ mysql bacula < /usr/share/bweb/bweb-mysql.sql"
@@ -34,5 +36,9 @@ if [ "$1" = "configure" ] ; then
  echo "by your www-data. You meed to use :"
  echo "chmod 644 /etc/bacula/bconsole.conf"
  echo "chmod 755 /usr/bin/bconsole"
+ echo
+ echo "If you are upgrading from a previous version, read /usr/share/doc/bweb/UPGRADE notes"
+ echo
  
 fi
+