#!/bin/sh
#
# This routine creates the Bacula database
#  using PostgreSQL, MySQL, or SQLite.
#
if test xsqlite = xmysql -o 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 $*
  else
    echo "Creating PostgreSQL database"
    /usr/local/libexec/bacula/create_postgresql_database $*
  fi
fi
