#!/bin/sh
#
# Drop Bacula database -- works for whatever is configured,
-# MySQL, SQLite, PostgreSQL
+# MySQL, SQLite, PostgreSQL, Ingres
#
-if test xsqlite = x@DB_NAME@ ; then
- @scriptdir@/drop_sqlite_database $*
+if test xsqlite3 = x@DB_TYPE@ ; then
+ @scriptdir@/drop_@DB_TYPE@_database $*
else
- if test xmysql = x@DB_NAME@ ; then
+ if test xmysql = x@DB_TYPE@ ; then
echo "Making MySQL database"
@scriptdir@/drop_mysql_database $*
+ elif test xingres = x@DB_TYPE@ ; then
+ echo "Dropping Ingres database"
+ @scriptdir@/drop_ingres_database $*
else
@scriptdir@/drop_postgresql_database $*
fi