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

bindir=@SQL_BINDIR@

if test xmysql = x@DB_NAME@ ; then 
  $bindir/mysql $* -f <<END-OF-DATA
    DROP DATABASE bacula;
END-OF-DATA
  if test $? -eq 0 ; then
    echo "Drop of bacula database succeeded."
  else
    echo "Drop of bacula database failed."
  fi
else
  echo "Bacula is not configured for a MySQL database."
fi
exit 0
