]> git.sur5r.net Git - bacula/bacula/blobdiff - gui/debian/bweb.postinst
Update
[bacula/bacula] / gui / debian / bweb.postinst
index 8b11eb744acc54a2b856caf0362581146f51b67f..1c0284a38640c63ce9a5d0c80415f6fd62eb831e 100644 (file)
@@ -14,7 +14,8 @@ if [ "$1" = "configure" ] ; then
  chmod 755 /etc/bacula
 
  chown www-data:root /etc/bacula/bweb.conf
- chmod 600 /etc/bacula/bweb.conf
+ chgrp bacula /etc/bacula/bweb.conf || true
+ chmod 640 /etc/bacula/bweb.conf
 
  chown www-data:root /var/spool/bweb
  chmod 700 /var/spool/bweb
@@ -24,6 +25,9 @@ if [ "$1" = "configure" ] ; then
  
  echo "postgres@localhost:~$ psql 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"
+ echo
  echo "You can use user/passwd (see /etc/apache/conf.d/bweb.conf)"
  echo "You have to reload your apache configuration"
  echo 
@@ -31,5 +35,14 @@ 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
+
+if [ "$1" = "upgrade" ] ; then
+ echo "If you are using postgresql, you have to load /usr/share/bweb/upgrade-2.0_2.2_postgresql.sql in your database"
+ echo "postgres@localhost:~$ psql bacula < /usr/share/bweb/upgrade-2.0_2.2_postgresql.sql"
+ echo
+fi