3 # shell script to create 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 if $bindir/mysql $* -f <<END-OF-DATA
25 CREATE DATABASE ${db_name};
28 echo "Creation of ${db_name} database succeeded."
30 echo "Creation of ${db_name} database failed."