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