3 # shell script to drop Bacula database(s)
6 # Bacula® - The Network Backup Solution
8 # Copyright (C) 2000-2014 Free Software Foundation Europe e.V.
10 # The main author of Bacula is Kern Sibbald, with contributions from many
11 # others, a complete list can be found in the file AUTHORS.
13 # You may use this file and others of this release according to the
14 # license defined in the LICENSE file, which includes the Affero General
15 # Public License, v3.0 ("AGPLv3") and some additional permissions and
16 # terms pursuant to its AGPLv3 Section 7.
18 # Bacula® is a registered trademark of Kern Sibbald.
24 $bindir/mysql $* -f <<END-OF-DATA
25 DROP DATABASE ${db_name};
27 if test $? -eq 0 ; then
28 echo "Drop of ${db_name} database succeeded."
30 echo "Drop of ${db_name} database failed."