#!/bin/sh
#
# This routine creates the Bacula database
#  using PostgreSQL, Ingres, MySQL, or SQLite.
#
if test xsqlite3 = xmysql ; then
  echo "Creating SQLite database"
  /usr/local/libexec/bacula/create_mysql_database
else
  if test xmysql = xmysql ; then
    echo "Creating MySQL database"
    /usr/local/libexec/bacula/create_mysql_database $*
  elif test xingres = xmysql ; then
    echo "Creating Ingres database"
    /usr/local/libexec/bacula/create_ingres_database $*
  else
    echo "Creating PostgreSQL database"
    /usr/local/libexec/bacula/create_postgresql_database $*
  fi
fi
