#!/bin/sh
#
# This routine makes the appropriately configured
#  Bacula tables for PostgreSQL, Ingres, MySQL, or SQLite.
#
if test xsqlite3 = xpostgresql ; then
  echo "Making SQLite tables"
  /usr/local/libexec/bacula/make_postgresql_tables $*
else
  if test xmysql = xpostgresql ; then 
    echo "Making MySQL tables"
    /usr/local/libexec/bacula/make_mysql_tables $*
  elif test xingres = xpostgresql ; then
    echo "Making Ingres tables"
    /usr/local/libexec/bacula/make_ingres_tables $*
  else
    echo "Making PostgreSQL tables"
    /usr/local/libexec/bacula/make_postgresql_tables $*
  fi
fi
