]> git.sur5r.net Git - bacula/bacula/blobdiff - gui/debian/bweb.postinst
bweb: Update some GPL2 notice to AGPL
[bacula/bacula] / gui / debian / bweb.postinst
index 6b274a273923eb430b28a81863f3f5914bd2f9a6..7f75d9a39544da9c55023461b6c08055a98d3eb0 100644 (file)
@@ -11,17 +11,39 @@ if [ "$1" = "configure" ] ; then
      echo "Please, use /etc/bacula/bweb.conf instead."
  fi
 
+ 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
-       
  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 "You can use user/passwd (see /etc/apache/conf.d/bweb.conf)"
- echo "You have to reload your apache configuration"
+ 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/apache2/sites-available/bweb.conf)"
+ echo "You have to enable bweb.conf (a2ensite) and reload your apache configuration"
+ echo 
+ echo "'/usr/bin/bconsole -n -c /etc/bacula/bconsole.conf' must be accessible"
+ 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 -U bacula bacula < /usr/share/bweb/upgrade-2.0_2.2_postgresql.sql"
+ echo
 fi