]> git.sur5r.net Git - bacula/bacula/blobdiff - gui/debian/bweb.postinst
ebl Update to use a separate db connexion to compute and
[bacula/bacula] / gui / debian / bweb.postinst
index 1c0284a38640c63ce9a5d0c80415f6fd62eb831e..a62117bf14dae3c25718ceba7164640be2dd88ad 100644 (file)
@@ -23,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"
@@ -41,8 +42,3 @@ 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 bacula < /usr/share/bweb/upgrade-2.0_2.2_postgresql.sql"
- echo
-fi