#!/bin/sh
#
# Drop Bacula tables -- works for whatever is configured,
-# MySQL or SQLite
+# MySQL, SQLite, or PostgreSQL
#
if test xsqlite = x@DB_NAME@ ; then
- . ./drop_sqlite_tables
+ @scriptdir@/drop_sqlite_tables
echo "Dropped SQLite tables"
else
if test xmysql = x@DB_NAME@ ; then
echo "Making MySQL tables"
- . ./drop_mysql_tables
+ @scriptdir@/drop_mysql_tables $*
echo "Dropped MySQL tables"
else
- . ./drop_postgresql_tables
+ # hardcoded database name - should be a parameter
+ @scriptdir@/drop_postgresql_tables bacula
echo "Dropped PostgreSQL tables"
fi
fi