]> git.sur5r.net Git - bacula/bacula/blob - bacula/src/cats/create_mysql_database.in
ebl Should fix #1323
[bacula/bacula] / bacula / src / cats / create_mysql_database.in
1 #!/bin/sh
2 #
3 # shell script to create Bacula database(s)
4 #
5
6 bindir=@SQL_BINDIR@
7 db_name=@db_name@
8
9 if $bindir/mysql $* -f <<END-OF-DATA
10 CREATE DATABASE ${db_name};
11 END-OF-DATA
12 then
13    echo "Creation of ${db_name} database succeeded."
14 else
15    echo "Creation of ${db_name} database failed."
16 fi
17 exit 0