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

bindir=/usr/local/bin
db_name=bacula

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