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