#!/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
echo "Making SQLite tables"
. ./make_sqlite_tables
else
- echo "Making MySQL tables"
- . ./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