#!/bin/sh
#
# shell script to drop Bacula SQLite tables
+db_name=@db_name@
-if test xsqlite = x@DB_NAME@ ; then
+
+if test xsqlite = x@DB_TYPE@ -o xsqlite3 = x@DB_TYPE@ ; then
cd @working_dir@
- rm -rf bacula.db
+ rm -rf ${db_name}.db
echo "SQLite database dropped."
else
echo "Bacula is not configured for an SQLite database."