#!/bin/sh
#
# shell script to drop Bacula database(s)
#

bindir=@MYSQL_BINDIR@
db_name=@db_name@

$bindir/mysql $* -f <<END-OF-DATA
  DROP DATABASE ${db_name};
END-OF-DATA
if test $? -eq 0 ; then
  echo "Drop of ${db_name} database succeeded."
else
  echo "Drop of ${db_name} database failed."
fi
exit 0
