#!/bin/sh
#
#  Drop Bacula database -- works for whatever is configured,
#    MySQL, SQLite, PostgreSQL, Ingres
#
if test xsqlite3 = xmysql ; then
  /usr/local/libexec/bacula/drop_mysql_database $*
else
  if test xmysql = xmysql ; then 
    echo "Making MySQL database"
    /usr/local/libexec/bacula/drop_mysql_database $*
  elif test xingres = xmysql ; then
    echo "Dropping Ingres database"
    /usr/local/libexec/bacula/drop_ingres_database $*
  else
    /usr/local/libexec/bacula/drop_postgresql_database $*
  fi
fi
