]> git.sur5r.net Git - bacula/bacula/blob - bacula/src/cats/drop_mysql_database.in
Add second COALESCE to sql_find -- thanks to JML
[bacula/bacula] / bacula / src / cats / drop_mysql_database.in
1 #!/bin/sh
2 #
3 # shell script to drop Bacula database(s)
4 #
5
6 bindir=@SQL_BINDIR@
7
8 if test xmysql = x@DB_NAME@ ; then 
9   if $bindir/mysql $* -f <<END-OF-DATA
10     DROP DATABASE bacula;
11     END-OF-DATA
12   then
13     echo "Drop of bacula database succeeded."
14   else
15     echo "Drop of bacula database failed."
16   fi
17 else
18   echo "Bacula is not configured for a MySQL database."
19 fi
20 exit 0