From 552395efec7ca80b62a381bfdb12068fb09619e4 Mon Sep 17 00:00:00 2001 From: Eric Bollengier Date: Sat, 19 Dec 2009 18:32:12 +0100 Subject: [PATCH] Tweak bweb deb script --- gui/debian/bweb.postinst | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/gui/debian/bweb.postinst b/gui/debian/bweb.postinst index 6f183ebb02..7f75d9a395 100644 --- a/gui/debian/bweb.postinst +++ b/gui/debian/bweb.postinst @@ -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 -- 2.39.5