]> git.sur5r.net Git - bacula/bacula/blob - bacula/src/cats/create_bacula_database.in
7ee767b133fb6ded05e9289d07d1d6ee9ce70df3
[bacula/bacula] / bacula / src / cats / create_bacula_database.in
1 #!/bin/sh
2 #
3 # This routine creates the Bacula database
4 #  using PostgreSQL, MySQL, or SQLite.
5 #
6 if test xsqlite = x@DB_NAME@ -o xsqlite3 = x@DB_NAME@ ; then
7   echo "Creating SQLite database"
8   @scriptdir@/create_@DB_NAME@_database
9 else
10   if test xmysql = x@DB_NAME@ ; then
11     echo "Creating MySQL database"
12     @scriptdir@/create_mysql_database $*
13   else
14     echo "Creating PostgreSQL database"
15     @scriptdir@/create_postgresql_database $*
16   fi
17 fi