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