]> git.sur5r.net Git - bacula/bacula/blobdiff - bacula/src/cats/make_bacula_tables.in
remove GROUP BY on db_get_job_volume_names. REVIEW.
[bacula/bacula] / bacula / src / cats / make_bacula_tables.in
index 726c8ff58a972e9e68d81d8153b5c9944bc731fb..a40d886cf9f664582611e45bbee883511c8b9cb3 100755 (executable)
@@ -1,10 +1,18 @@
 #!/bin/sh
 #
 # This routine makes the appropriately configured
-#  Bacula tables for either MySQL or SQLite
+#  Bacula tables for PostgreSQL, MySQL, or SQLite.
 #
 if test xsqlite = x@DB_NAME@ ; then
-  source ./make_sqlite_tables
+  echo "Making SQLite tables"
+  . ./make_sqlite_tables
 else
-  source ./make_mysql_tables
+  if test xmysql = x@DB_NAME@ ; then 
+    echo "Making MySQL tables"
+    . ./make_mysql_tables
+  else
+    echo "Making PostgreSQL tables"
+    # hard coded database name
+    . ./make_postgresql_tables bacula
+  fi
 fi