]> git.sur5r.net Git - bacula/bacula/commitdiff
Supply a PostgreSQL option
authorDan Langille <dan@langille.org>
Fri, 12 Dec 2003 15:33:51 +0000 (15:33 +0000)
committerDan Langille <dan@langille.org>
Fri, 12 Dec 2003 15:33:51 +0000 (15:33 +0000)
git-svn-id: https://bacula.svn.sourceforge.net/svnroot/bacula/trunk@863 91ce42f0-d328-0410-95d8-f526ca767f89

bacula/src/cats/update_bacula_tables.in

index a1b1984cac5209ac503872ca74302161733fbf10..a45d69eaa28bd54e32fdefd2832080ddc021f32e 100755 (executable)
@@ -1,7 +1,7 @@
 #!/bin/sh
 #
 # This routine alters the appropriately configured
-#  Bacula tables for either MySQL or SQLite
+#  Bacula tables for PostgreSQL, MySQL, or SQLite.
 #
 if test xsqlite = x@DB_NAME@ ; then
   echo "Altering SQLite tables"
@@ -11,3 +11,8 @@ if test xmysql = x@DB_NAME@ ; then
   echo "Altering MySQL tables"
   . ./update_mysql_tables
 fi
+if test xpostgresql = x@DB_NAME@ ; then
+  echo "Altering PostgreSQL tables"
+  # we need the bacula datbase name in here... Should not be hardcoded
+  . ./update_postgresql_tables bacula
+fi