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

bindir=/usr/local/bin

if test xmysql = xmysql ; 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
