]> git.sur5r.net Git - bacula/bacula/commitdiff
Tweak bweb deb script
authorEric Bollengier <eric@eb.homelinux.org>
Sat, 19 Dec 2009 17:32:12 +0000 (18:32 +0100)
committerEric Bollengier <eric@eb.homelinux.org>
Sat, 19 Dec 2009 17:32:12 +0000 (18:32 +0100)
gui/debian/bweb.postinst

index 6f183ebb0242f7370c3b6fd385a9167174754a10..7f75d9a39544da9c55023461b6c08055a98d3eb0 100644 (file)
@@ -19,7 +19,7 @@ if [ "$1" = "configure" ] ; then
 
  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"
  
@@ -42,3 +42,8 @@ if [ "$1" = "configure" ] ; then
  
 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