#!/bin/sh
#
# This routine makes the appropriately configured
#  Bacula tables for PostgreSQL, Ingres, MySQL, or SQLite.
#
if test xsqlite3 = xsqlite3 ; then
  echo "Making SQLite tables"
  /usr/local/libexec/bacula/make_sqlite3_tables $*
else
  if test xmysql = xsqlite3 ; then 
    echo "Making MySQL tables"
    /usr/local/libexec/bacula/make_mysql_tables $*
  elif test xingres = xsqlite3 ; 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
